Skip to main content
POST
https://ageneral.ai
/
v1
/
chat
/
responses
Create response
curl --request POST \
  --url https://ageneral.ai/v1/chat/responses \
  --header 'Ageneral-Project-Id: <ageneral-project-id>' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "messages": [
    {}
  ],
  "model": "openai/gpt-4o-mini"
}
'
{}

Authorizations

Authorization
string
header
required

Session JWT from Ageneral sign-in. Send as Authorization: Bearer <token>.

Headers

Ageneral-Project-Id
string
required

Project id. You must be a member with access.

Ageneral-Session-Id
string

Existing platform chat session to continue. Omit to create a new session on first non-/new turn.

Body

application/json

At least one chat-style message; last user text drives the turn. model is optional when a server default applies.

messages
object[]
required
Minimum array length: 1
model
string
Example:

"openai/gpt-4o-mini"

Response

Success. JSON or SSE stream.

OpenAI-compatible Responses output when not streaming.