POST
/
v1
/
responses
curl -X POST https://www.anyfast.ai/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.1",
    "input": [
      {
        "role": "user",
        "content": "Write a one-sentence bedtime story about a unicorn."
      }
    ],
    "reasoning": {
      "effort": "high"
    }
  }'
{
  "id": "resp_01",
  "object": "response",
  "created_at": 1677652288,
  "status": "completed",
  "model": "gpt-5.1",
  "output": [
    {
      "type": "message",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "Once upon a time, a little unicorn named Sparkle danced across a rainbow bridge into the land of dreams."
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 25,
    "output_tokens": 30,
    "total_tokens": 55
  }
}
Control the reasoning effort level when generating model responses.

Request Parameters

model
string
required
The model ID to use. Example: gpt-5.1
input
array
required
Array of input messages.
reasoning
object
required
Reasoning configuration.
  • effort (string): Reasoning effort level. Options: minimal, low, medium, high
curl -X POST https://www.anyfast.ai/v1/responses \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.1",
    "input": [
      {
        "role": "user",
        "content": "Write a one-sentence bedtime story about a unicorn."
      }
    ],
    "reasoning": {
      "effort": "high"
    }
  }'
{
  "id": "resp_01",
  "object": "response",
  "created_at": 1677652288,
  "status": "completed",
  "model": "gpt-5.1",
  "output": [
    {
      "type": "message",
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "text": "Once upon a time, a little unicorn named Sparkle danced across a rainbow bridge into the land of dreams."
        }
      ]
    }
  ],
  "usage": {
    "input_tokens": 25,
    "output_tokens": 30,
    "total_tokens": 55
  }
}