API429 / Quickstart

Connect your application to API429

Create a key, check which models it can access, and send a small request. The examples cover Chat Completions and Responses.

Laptop with code and a workflow sketch
Editorial photo illustration: Laptop with code and a workflow sketch.Related reading: Connect Cursor · Connect n8n · Model catalog

Full API reference

Models, request fields, examples and prices for every endpoint, split by topic. It is the same text as the documentation in the client portal and is updated together with it.

1. Configure the address and key

Base URL: https://gateway.api429.com/v1. Use your API429 key as a Bearer token. A key from another service is not an API429 credential.

Keep the key in a server environment variable. Do not put it in browser code, a public repository, screenshots or logs. Set API429_API_KEY in the server environment before running these examples.

2. Check model access

curl --fail-with-body https://gateway.api429.com/v1/models \
  -H "Authorization: Bearer $API429_API_KEY"

Choose an exact ID returned for your key. The public catalog lists published models and rates; your authenticated model list determines access for that key. Set API429_MODEL to the selected text model ID.

For an application selection policy, follow Exact model IDs, credential access and catalog freshness. Check the same credential and base URL before using an observation.

Model catalog and rates · Compare provider prices

GPT-6.2 Sol (gpt-6.2-sol)

For text, use Chat Completions or Responses. For function calls, select OpenAI Responses API in your client. Sending tools through Chat Completions returns HTTP 400. For plain chat, turn off tools and omit the tools field.

curl --fail-with-body https://gateway.api429.com/v1/responses \
  -H "Authorization: Bearer $API429_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-6.2-sol",
  "input": "Call get_status.",
  "tools": [
    {
      "type": "function",
      "name": "get_status",
      "parameters": {
        "type": "object",
        "properties": {}
      }
    }
  ],
  "tool_choice": {
    "type": "function",
    "name": "get_status"
  }
}'

Look in output for a function_call item named get_status. Your application runs the function.

3. Send a text request

Generation is paid according to the selected model. Start with one short request and inspect its result and recorded charge before increasing volume.

curl

Replace MODEL_ID in the JSON with an exact available text model ID.

curl --fail-with-body https://gateway.api429.com/v1/chat/completions \
  -H "Authorization: Bearer $API429_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"Explain what an API is in one sentence."}],"max_tokens":128,"stream":false}'

Python

This example uses the Python standard library and runs on your server.

import json
import os
import urllib.request

payload = {
    "model": os.environ["API429_MODEL"],
    "messages": [{"role": "user", "content": "Explain what an API is in one sentence."}],
    "max_tokens": 128,
    "stream": False,
}
request = urllib.request.Request(
    "https://gateway.api429.com/v1/chat/completions",
    data=json.dumps(payload).encode("utf-8"),
    headers={
        "Authorization": "Bearer " + os.environ["API429_API_KEY"],
        "Content-Type": "application/json",
    },
    method="POST",
)
with urllib.request.urlopen(request, timeout=60) as response:
    result = json.load(response)
print(result)

JavaScript

Run in a server runtime that provides fetch, such as Node.js. Never expose process.env credentials to a browser bundle.

const key = process.env.API429_API_KEY;
const model = process.env.API429_MODEL;
if (!key || !model) throw new Error("Set API429_API_KEY and API429_MODEL");

const response = await fetch("https://gateway.api429.com/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + key,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model,
    messages: [{ role: "user", content: "Explain what an API is in one sentence." }],
    max_tokens: 128,
    stream: false,
  }),
  signal: AbortSignal.timeout(60000),
});
if (!response.ok) throw new Error("API returned HTTP " + response.status);
console.log(await response.json());

4. Select the method for your task

Chat Completions uses messages; Responses uses input. Image generation uses a separate endpoint with model and prompt. A model listing does not guarantee that every method or optional parameter is supported.

Methods, required fields and examples · Nano Banana API · ComfyUI custom node and workflows

5. Diagnose a failed request

  • 401 / 403: check the key, URL and access permissions.
  • 400: check the exact model ID, required fields and supported parameters.
  • 429: reduce request pressure and use a bounded retry policy according to the response.
  • Timeout: check the operation and recorded charge before repeating paid work. A client timeout does not prove cancellation.

Before deployment or a scheduled check, use Complete workload health observations to distinguish a complete result from partial or uncertain evidence.

Runnable examples

Download these Python source files and run them locally. Their execution modes differ; read the owning guide before using real credentials.

  • api429-model-catalog-selection.py, api429-health-observations.py, api429-retry-policy.py — Python 3, standard library. Run each with python3 and its filename: built-in synthetic data demonstrates selection, health interpretation and an application retry decision, with no network requests or waiting. These are application policies, not gateway guarantees. Guides: model selection, health observations, retry budget.
  • api429-model-access-check.py — Python 3, standard library; set API429_API_KEY and API429_MODEL locally, then run python3 api429-model-access-check.py. Sends one authenticated GET /v1/models with no generation, redirects or retries. Success confirms list membership only. Access-check guide.
  • api429-telegram-private-bot.py, api429-telegram-update-synthetic.json — Python 3.10+, POSIX (macOS/Linux), standard library. Save both files in the same folder and run python3 -B api429-telegram-private-bot.py there. The default synthetic cycle makes zero network requests and proves no real Telegram delivery or inference. Only the explicit operator --execute-once mode can incur generation costs and send one private message; it requires your dedicated bot, no other poller anywhere, verified IDs, private state and securely supplied secrets. Read the guide before enabling it. Telegram bot guide.
  • bulk-images.py — Python 3.10+ on macOS/Linux, standard library; supply a JSONL file with unique id and prompt fields. Run python3 bulk-images.py prompts.jsonl for a dry run without API calls. Only --execute sends paid image-generation requests and requires API429_API_KEY and access to the model configured in the file. Inspect the model and current rate first. Bulk image guide (Russian).

Payment and a $10 test

  • Russian bank card. Top up your balance in the account.
  • Invoice for companies. Bank transfer with closing documents.
  • USDT and TON. Top up in crypto.

$10 test credit. Subscribe to our Telegram channel through the bot and get $10 on your balance for the first requests. Get $10 in the bot

Current prices · Usage and billing FAQ · User Agreement. For account, payment or request questions, contact support@api429.com. Share a redacted description and request time; never send your API key.

SDKs and application integrations

For an OpenAI-compatible client, configure this base URL, an API429 key and the exact model ID. Check streaming, tool calls and structured output individually for your chosen model. Tools using native provider APIs require their own compatibility check.

Public contract: OpenAPI JSON. Examples describe request construction; no paid generation benchmark is implied.

Telegram