POST
/
ai
curl --request POST \
--url https://www.orgo.ai/api/ai \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"provider": "openrouter",
"model": "openai/gpt-4o",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'
{
"id": "<string>",
"object": "chat.completion",
"created": 123,
"model": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "assistant",
"content": "<string>"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123
}
}

Authorizations

Authorization
string
header
required

API key authentication using Bearer token

Body

application/json

Response

200
application/json

Successful completion (non-streaming)

The response is of type object.