Skip to content
Orqen Docs

API Reference

Proxy endpoints

Orqen supports stateless upstream proxy endpoint families in addition to chat completions. These routes use the same Orqen API key and provider-key injection, but they do not run chat-only payload optimization, tool routing, prompt compression, or session chat logging.

Object lifecycle APIs such as files, batches, vector stores, assistants, containers, and evals need storage ownership and provider-specific lifecycle semantics. They are intentionally not exposed as blind pass-through routes.

Supported stateless endpoints

POST/v1/completionsText completions via upstream proxy
POST/v1/embeddingsEmbeddings via upstream proxy
POST/v1/responsesOpenAI Responses API via upstream proxy
POST/v1/images/generationsImage generation
POST/v1/images/editsImage editing, multipart form
POST/v1/images/variationsImage variations, multipart form
POST/v1/audio/transcriptionsAudio transcription, multipart form
POST/v1/audio/speechText to speech, binary audio response
POST/v1/moderationsModeration
POST/v1/rerankRerank
POST/v1/ocrOCR
POST/v1/videos/generationsVideo generation

Embeddings

curl https://api.orqen.app/v1/embeddings \
  -H "Authorization: Bearer sk-orq-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "text-embedding-3-small",
    "input": "Memory snippet to embed"
  }'

Images

curl https://api.orqen.app/v1/images/generations \
  -H "Authorization: Bearer sk-orq-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-1",
    "prompt": "A clean product UI mockup"
  }'

Audio

curl https://api.orqen.app/v1/audio/speech \
  -H "Authorization: Bearer sk-orq-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "tts-1",
    "voice": "alloy",
    "input": "Hello from Orqen"
  }' \
  --output speech.mp3

Provider credentials

The model field is used to detect the provider and inject the provider key saved in the dashboard. Per-request provider credentials also work on these endpoints when the upstream provider supports them.