Skip to main content
Coding agents can do the integration for you. Copy the prompt below, open your project in Claude Code, Codex, Cursor or a similar agent, and paste it as your request. The agent reads these docs, inspects your code, wires up an OpenAI-compatible client and adds a smoke test.

Before you start

  1. Finish Creating an account and confirm activation as described in First API call.
  2. Create an API key under API Keys with the models, budget and expiry you want.
  3. Put the key in your project’s .env (or your shell) yourself as OMNIRELAY_API_KEY. Do not paste the key into the agent’s chat: chat transcripts may be stored or logged.

The prompt

Use the copy button in the top right corner of the block.
Prompt

What to expect

  • The agent proposes a plan first, then edits your code. Review the diff as you would any other change.
  • Listing models is free; the smoke test makes one small paid call, and the agent should ask before running it.
  • If the smoke test fails, look up the error.code in Errors and keep the X-Request-ID for support.
Agents follow the prompt but can still make mistakes. Check that the key is read only from the environment, that automatic retries are off, and that the chosen model appears in your own GET /v1/models list.

Tips

  • Other tools: the prompt is plain text, so it works with any agent that can read web pages and edit files. If your agent cannot fetch URLs, use the Copy page menu on the linked pages and paste them in as context.
  • More features: for images, video or the Management API, add the relevant page to the list, for example Image generation, Video generation or Management API.
  • Existing OpenAI code: usually only the base URL, key and model change. Ask the agent to keep the change that small.
First API call · Chat completions · Errors