POST
/
responses
curl --request POST \
  --url https://api.fireworks.ai/inference/v1/responses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "accounts/fireworks/models/qwen3-235b-a22b",
  "input": "<string>",
  "tools": [
    {
      "type": "mcp",
      "server_label": "<string>",
      "server_url": "<string>",
      "require_approval": "<string>"
    }
  ],
  "max_output_tokens": 123,
  "temperature": 1,
  "stream": false,
  "store": true
}'
{
  "id": "<string>",
  "object": "response",
  "status": "completed",
  "created_at": 123,
  "model": "<string>",
  "output": [
    {
      "type": "message",
      "role": "assistant",
      "content": [
        {
          "type": "text",
          "text": "<string>"
        }
      ]
    }
  ],
  "output_text": "<string>",
  "usage": {
    "input_tokens": 123,
    "output_tokens": 123,
    "total_tokens": 123
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200 - application/json

OK

The response is of type object.