BEDENX API
Connect your application to GPT-6 Astra, image generation, transcription and speech with a BEDENX key.
Make your first request
/api/v1/responsesSet BEDENX_API_KEY on your application server, then send a text request.
curl https://bedenx.com/api/v1/responses \
-H "Authorization: Bearer $BEDENX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-6-astra",
"input": "Say hello.",
"max_output_tokens": 512
}'Read text from output[].content[] entries with type output_text. The response includes token usage when supplied by OpenAI.
Connection
Base URL
https://bedenx.com/api/v1Authenticate
Authorization: Bearer <BEDENX key>Check your key
/api/v1/modelsThis endpoint authenticates your key without calling OpenAI. Keep keys in server-side secrets.
Available endpoints
Text keys support Astra through Responses. A multimedia key also grants the following endpoints. Use GET /api/v1/models to list model IDs supported by your key. Actual model access follows the BEDENX OpenAI project.
| POST endpoint | Input and output |
|---|---|
| /responses | Astra text; multimedia keys also accept inline image data URLs, structured output, reasoning effort, web search and client-executed functions. |
| /chat/completions | Astra with a messages array and max_completion_tokens. |
| /images/generations | GPT Image 2.6 Sunburst or Flare. Send a prompt to generate one image. |
| /images/edits | Multipart form with model, image and prompt. PNG, JPEG and WebP are supported. |
| /audio/transcriptions | Multipart form with model gpt-transcribe and an audio file. |
| /audio/speech | Send input, a built-in voice and gpt-4o-mini-tts for audio output. Disclose AI-generated speech to listeners. OpenAI schedules this model to retire on January 6, 2027. |
| /embeddings | Text vectors from text-embedding-3-small or text-embedding-3-large. |
| /moderations | Classify text with omni-moderation-latest. |
Requests and limits
Astra requests disable response storage. Multimedia keys can stream Responses and Chat Completions with stream set to true. The text profile accepts up to 32 KiB per request. The multimedia profile accepts 4 MiB for Responses, 8 MiB for multipart uploads, and 128 KiB for other JSON requests. Large image and audio results are passed directly to the client. Token counters include usage parsed from JSON responses and exclude streamed text, image and audio bodies.
The administrator sets per-key limits for requests per minute, requests per UTC calendar month and output tokens per request. Each attempt sent to OpenAI counts once, including provider failures. Invalid requests and checks of your key do not count.
| Status | What to do |
|---|---|
| 400 / 413 / 415 | Check the request fields, size and content type. |
| 401 | Check whether the key is active and unexpired. |
| 429 | Wait for the interval in the Retry-After header. |
| 502 / 503 / 504 | Check the error code and contact BEDENX with the request ID. |