Skip to main content
POST
/
openrouter
/
v1
/
messages
Create a Message
curl --request POST \
  --url https://api.agipower.ai/openrouter/v1/messages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "anthropic/claude-sonnet-4.6",
  "max_tokens": 1024,
  "messages": [
    {
      "role": "user",
      "content": "Hello from AGIPower"
    }
  ],
  "stream": false
}
'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"anthropic/claude-sonnet-4.6"

max_tokens
integer
required
Example:

1024

messages
object[]
required
stream
boolean
default:false

Response

200 - application/json

OpenRouter-compatible message response

The response is of type object.