Get Started

1.Creating an Account

  1. Click Sign Up.

  2. Create an account using your email and password or sign in with GitHub/Google.

  3. Once logged in, head to your Dashboard.

2. Getting Your API Key

  • From your dashboard, navigate to API Keys.

  • Click Create Key.

  • Copy your API key — keep it secure and never expose it publicly.

  • Use it in the Authorization header when making requests:

Authorization: Bearer YOUR_API_KEY

3. Making Your First Request

Here’s how to send a basic chat completion request using curl:

curl https://api.uniportai.site/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4",
    "messages": [
      { "role": "system", "content": "You are a helpful assistant." },
      { "role": "user", "content": "Tell me a fun fact about space." }
    ]
  }'

Last updated