POST/v1/responses
Request#
The Responses API is supported for GPT models. Instead of messages you pass input — a string or a list of messages — and instructions.
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.flua.ink/v1", api_key=os.environ["FLUA_API_KEY"])
response = client.responses.create(
model="gpt-6-astra",
instructions="Be concise",
input="Write a regular expression for an email address",
)
print(response.output_text)When to use it#
For most tasks Chat Completions is enough — every model understands it. The Responses API is for tools that only speak it, such as Codex CLI.