responses
POST/openai/gpt/v1/responses1 credit / call
Sends a responses request to a GPT model and returns its reply.
Parameters
- model
- required · gpt-6-astra, gpt-6.1-sol or gpt-6-luna
- input
- required · a string, or a list of input items
- max_output_tokens
- optional · 1 up to the model's output limit, which applies when unset
- stream
- optional · server-sent events instead of one JSON body
Request
curl -X POST https://api.sfaie.com/openai/gpt/v1/responses \
-H "Authorization: Bearer $SFAIE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "gpt-6-astra", "max_output_tokens": 64, "input": "Say hi." }'Response
{
"id": "resp_SampleSampleSampleSample",
"object": "response",
"created_at": 1792300000,
"status": "completed",
"model": "gpt-6-astra",
"output": [
{
"type": "message",
"id": "msg_SampleSampleSampleSample",
"status": "completed",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "Hi. What can I help with?",
"annotations": []
}
]
}
],
"usage": {
"input_tokens": 9,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 9,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 18
}
}Try it
Sign in to try this endpoint.
Calls are real. Accepted calls cost 1 credit.