Endpoints
Create a response
Create a response with a compatible model. Test model compatibility before production use.
For the workflow and examples, read the guide.
POST
/v1/responsesAuthorization
bearerAuth AuthorizationBearer <token>
Your Triton AI Developer API key.
In: header
Request Body
application/json
Response Body
application/json
import osfrom openai import OpenAIclient = OpenAI( api_key=os.environ["TRITONAI_API_KEY"], base_url="https://tritonai-api.ucsd.edu/v1",)response = client.responses.create( model="gpt-5.6-luna", input="Explain cosine similarity in two sentences.", store=False,)print(response.output_text)