Skip to main content
POST
/
ai
AI Model Completion
curl --request POST \
  --url https://www.orgo.ai/api/ai \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "openrouter",
  "model": "<string>",
  "messages": [
    {
      "role": "<string>",
      "content": "<string>"
    }
  ],
  "stream": true,
  "temperature": 123,
  "max_tokens": 123
}'
{
  "id": "<string>",
  "choices": [
    {
      "message": {
        "role": "<string>",
        "content": "<string>"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication. Format: sk_live_...

Body

application/json
provider
enum<string>
required
Available options:
openrouter
model
string
required
messages
object[]
required
stream
boolean
temperature
number
max_tokens
integer

Response

Successful completion

id
string
choices
object[]