Ways to connect

Developer setup

Create a key, choose a protocol, and connect image generation to your tool or project.

Let AI read the docs πŸ₯ΊπŸ‘‰
  1. 01

    Create an API key

    Create a key for the required model group.

    Open dashboard
  2. 02

    Choose a protocol

    Prefer Studio Unified for new work; retain a native SDK when it already fits.

    Compare protocols
  3. 03

    Configure and send

    Copy the Base URL, model name, and an example in your language.

    Open protocol docs

Address and authentication

Default https://api.1route.devFrequent timeouts? Use https://image-api.1route.dev
SettingValue
API keyCreate it in the main site's dashboard
Studio UnifiedUse the service origin; prefix models with openai/ or google/
OpenAI SDKSet base_url to the origin plus /v1, such as https://api.1route.dev/v1
Google Gen AI SDKSet the origin as Base URL and use API version v1beta

HTTP examples use Authorization: Bearer YOUR_API_KEY. Google's SDK uses x-goog-api-key. Use a key from the appropriate model group.

Need a key? Create oneChoose the 🎨 GPT Image or 🍌 Nano Banana group for your model.

OpenAPI integration

When calling the Studio HTTP API directly, ask your AI to read this OpenAPI document or import it into a tool that supports OpenAPI to inspect endpoints, request fields, and response schemas. Use it with the Studio guide for model extensions and the asynchronous job workflow when generating integration code.

Choose a model

🎨 GPT Image options are gpt-image-2, gpt-image-2.5-flare, and gpt-image-2.5-sunburst. Google options are gemini-3.1-flash-image (🍌 Nano Banana 2) and gemini-3-pro-image (🍌 Nano Banana Pro). See model comparison.

For example, use openai/gpt-image-2.5-flare in Studio Unified and gpt-image-2.5-flare in OpenAI Images.

Make a first request

  1. Open the protocol page and copy an example in your language.
  2. Start with a short text-to-image prompt, then add references and parameters.
  3. For Studio Unified, wait for completed before retrieving the result. Native protocols return images directly.
  4. Save the image to your own storage. Server-hosted image URLs and job results are retained for 72 hours.

Choose a protocol Β· Studio Unified Β· OpenAI Images Β· Gemini Native