Documentation section

First request

The OpenAI API is what Gatelum implements: existing code on the official SDK will run once you swap in the new address and key.

What if I just want to talk?Neither a key nor code: open the chat and just write. The balance is the same.
  1. Create an account.

  2. Top up the balance and issue an API key in the cabinet.

  3. Paste the key into the example below and send the request.

Gateway address (Base URL)https://api.gatelum.com/v1

Your first request

Model for the example
Input $0.122 / 1M · Output $0.625 / 1M · Context 272K
curl https://api.gatelum.com/v1/chat/completions \
  -H "Authorization: Bearer glt_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-5.4-mini", "messages": [{"role": "user", "content": "Hi there!"}]}'

Pick a model and its ID and the matching endpoint appear in the code by themselves. The highlight marks the single spot for your key: create it on the keys page in the cabinet and paste it over the placeholder.

Three connection fields

Base URL / Endpointhttps://api.gatelum.com/v1
Your API keyglt_YOUR_KEY
Model IDopenai/gpt-5.4-mini

base_url is the address above plus /v1. The model field decides which model to call.

Found a mistake in the docs? Let us know.

  • First requestStartSection
  • Key and clientsStartSection
  • Pricing, cache and reserveMoneySection
  • Text chatTextSection
  • Request fieldsTextSection
  • Images as inputFilesSection
  • PDF in a requestFilesSection
  • Image generationMediaSection
  • Image editingMediaSection
  • VideoMediaSection
  • PredictionsMediaSection
  • Audio and transcriptionMediaSection
  • Text to speechMediaSection
  • Workspace APIAccountSection
  • Limits and accessAccountSection
  • Endpoint referenceReferenceSection
  • Errors and retriesReferenceSection
  • Short answersReferenceSection