Zum Inhalt springen
Kostenlos registrieren
API-Referenz

OpenAI Responses API verwenden

Teste BetterTokens OpenAI Responses API für Codex: Base URL, Bearer API Key und POST /v1/responses.

POST /v1/responses

Verwende diesen Endpunkt für Codex und Anwendungen, die die OpenAI Responses API nutzen.

Im Playground testen

Trage im Playground auf der rechten Seite deinen API Key ein, ersetze bei Bedarf model durch eine aktuelle Model ID und sende den Request. Bestätige das Modell vor dem Test in der model plaza.

Verwandte Endpunkte

POST/v1/responses

Autorisierungen

Authorizationstringheadererforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body application/json

modelstringerforderlich

A model ID currently available in the model plaza. Check the model plaza for the latest options.

Beispiel:"YOUR_MODEL_ID"
inputstringerforderlich

The text input to send to the model.

Beispiel:"Hello"

Antwort

200The Responses API result from the selected model.
400Invalid request format or parameters.
401The BetterToken API Key is missing or invalid.
402The account has insufficient credit or balance.
429The request exceeded a rate or concurrency limit, or the upstream service is busy.
500The gateway or upstream service returned an error.