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 reasoning effort level in model 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
}
}
gpt-5.1effort (string): Reasoning effort level. Options: minimal, low, medium, highcurl -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
}
}