Skip to content

Online funding is not available yet.

Developer quickstart

  1. Create an account and sign in. In Portal → API Keys, create a key and securely save it once. Keep it on your server, never in a browser or support message.
  2. Confirm access with the operator through Portal → Support. Funding is closed; registration alone does not grant funded API access.
  3. Use Base URL https://pebblearc.com/v1 and model deepseek-flash. Follow the installation and terminal steps below; no endpoint confirmation is needed.
  4. Send a small non-streaming text request, then check Portal → Usage for tokens and actual charge, and Portal → Billing for account entries. Temporary holds appear separately from spend.

Compatibility is limited to POST /v1/chat/completions and authenticated GET /v1/models. The request fields are model, messages, max_tokens and stream=false. Messages contain role and string content only. Extra fields are rejected. This is not full OpenAI API compatibility.

For Pro, Idempotency-Key is optional: one 1–128 character printable ASCII value without spaces. A reused key returns 409 and sends no new upstream request; changing the content with that key also returns 409. Responses are not replayed. Keep the original server request ID and reconcile pending or uncertain results before any further action.

Start with a small text request

Use an eligible account with available balance and keep your API key private. The public Base URL is shown below. Registration alone does not grant API balance; funding remains closed.

Base URL: https://pebblearc.com/v1

The Base URL is a public address; your API key is a private credential. Use your saved key from Portal → API Keys. Registration alone does not provide API balance. Funding remains closed; check access before sending.

1. Install Python 3 from python.org if needed. Copy the Python example into a plain-text file named quickstart.py (not quickstart.py.txt). Open a terminal in the same folder.

2. Choose only the commands for your system. Privately replace YOUR_API_KEY with your saved key, then run the commands in order. The environment variable keeps the key outside the Python file and applies to this terminal session. Windows uses PowerShell and py; macOS/Linux uses bash and python3. If Python is not found, finish installing it and reopen the terminal.

Alternative: curl (bash) needs no Python SDK. Privately replace YOUR_API_KEY. Do not run both examples to check the same request: each successful call can consume balance. SDK base_url/baseURL ends in /v1; only a full request URL adds /chat/completions.

quickstart.py
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AI_GATEWAY_API_KEY"],
    base_url="https://pebblearc.com/v1",
    max_retries=0,
)
response = client.chat.completions.create(
    model="deepseek-flash",
    messages=[{"role": "user", "content": "Hello, world!"}],
    max_tokens=32,
    stream=False,
)
print(response.choices[0].message.content)
print(response.usage)
Windows PowerShell
py -m pip install openai
$env:AI_GATEWAY_API_KEY = "YOUR_API_KEY"
py quickstart.py
macOS / Linux (bash)
python3 -m pip install openai
export AI_GATEWAY_API_KEY='YOUR_API_KEY'
python3 quickstart.py
curl (bash)
curl https://pebblearc.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"deepseek-flash","messages":[{"role":"user","content":"Hello, world!"}],"max_tokens":32,"stream":false}'

Success prints an answer and token usage; wording varies. Check Portal → Usage and Billing for the actual charge. An error is not an answer: see the status guidance below. Do not retry automatically or send funds to resolve an error.

Errors and safe recovery

  • 401: Missing, invalid or revoked API key. Check the key without exposing it.
  • 403: Key or customer is inactive, unavailable or not bound to an eligible account.
  • 402: Available balance is insufficient for the request estimate. Check balance and outstanding holds; funding is currently closed.
  • 422: Unsupported model, field, message shape, streaming or max_tokens. Correct the request before submitting again.
  • 429: Request admission/rate limit reached. Reduce concurrency and inspect the response; do not blindly repeat an uncertain request.
  • 5xx or a lost response: execution or settlement may be uncertain. Inspect Usage/Billing and contact support using a request ID if available.

Keep max_retries=0. A timeout or failed response can leave a hold or correspond to completed work. Flash and requests without an idempotency key can execute and bill again if repeated; reconcile the original result first. The Pro-only key behavior below does not authorize automatic replay.