Responses
Create a response
OpenAI Responses API. Supported on OpenAI models and xAI Grok models — xAI's Agent Tools API uses the same shape, so any Grok model accepts tools: [{"type": "web_search"}] / x_search / code_interpreter here. Anthropic and Gemini targets return not_implemented because their native shapes differ — for Anthropic call POST /v1/messages (Native Formats / Anthropic), for Gemini call POST /v1beta/models/{model}:generateContent (Native Formats / Gemini).
post/responses
Request body
Example request
{
"model": "openai/gpt-4.1",
"input": [
{
"content": [
{
"image_url": {
"url": "https://example.com/photo.jpg"
}
}
]
}
]
}Response
OK