Skip to main content
POST
/
v1
/
chat
/
completions
Create Chat Completion
curl --request POST \
  --url https://api.agipower.ai/v1/chat/completions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "openai/gpt-5",
  "messages": [
    {
      "role": "user",
      "content": "Hello from AGIPower"
    }
  ],
  "stream": false,
  "temperature": 0.7,
  "max_tokens": 1024
}
'
{}

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:

"openai/gpt-5"

messages
object[]
required
stream
boolean
default:false
temperature
number
Example:

0.7

max_tokens
integer
Example:

1024

Response

200 - application/json

Chat completion response

The response is of type object.