Authentication

Every request is authenticated with an API key and billed to the workspace that owns it.

Get a key

Open Developers → API keys in the studio and create a key. The secret (it starts with ga_) is shown once, right after you create or roll it — copy it then. You can roll a key to get a new secret without changing its name or history, and revoke it to stop it working on the next request.

Base URL and header

All endpoints live under https://api.gluonart.com. Send the key as a Bearer token:

curl https://api.gluonart.com/v1/models \
  -H "Authorization: Bearer $GLUONART_API_KEY"

The API is OpenAI-compatible, so the official SDKs work by changing the base URL:

from openai import OpenAI

client = OpenAI(base_url="https://api.gluonart.com/v1", api_key="ga_...")
reply = client.chat.completions.create(
    model="gpt-5.5",
    messages=[{"role": "user", "content": "Write a haiku about light."}],
)

Anthropic-style clients can call /v1/messages the same way:

import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({ baseURL: "https://api.gluonart.com", apiKey: "ga_..." });
const message = await client.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 512,
  messages: [{ role: "user", content: "Hello" }],
});

Endpoints

EndpointWhat it does
POST /v1/chat/completionsOpenAI-style chat completions
POST /v1/responsesOpenAI-style Responses API
POST /v1/messagesAnthropic-style Messages API
POST /v1/images/generationsGenerate an image — see Images
POST /v1/images/editsEdit or combine reference images
POST /v1/videos, GET /v1/videos/{id}Make a video — see Video
GET /v1/modelsEvery model you can call, with its price in credits

Errors

Errors come back as JSON: {"error": {"message": "..."}}.

StatusMeaning
400The request asked for something the model does not offer (a size, a reference image, a duration). The message says what it takes.
401The key is missing, unknown or revoked.
402Not enough credits. The message names the price and your balance, for example Not enough credits: this image costs 50 credits and your balance is 20. Add credits to continue. Nothing is sent to the model.
404The model is not available on this endpoint. The message lists the ones that are.
429Too many requests. Wait for the number of seconds in the Retry-After header.
503We could not check your key or balance right now. Nothing was charged; retry shortly.

Limits

Each key may send up to 6,000 requests a minute. There is no monthly quota: spending is limited only by your credit balance, which you can top up or refill automatically under Developers → Billing.