English home / Getting started
Developer quick start

Make your first API call in four checks

Create a key for testing, use the shared Base URL, send one short request, then record the response, request ID and balance change. This workflow also helps you validate image, video and Chinese model integrations.

Base URL: https://www.gpt345.com/v1·Updated 2026-09-27

1. Create a key for testing

Register on the main site, add a small balance if required, and create a key that is separate from production credentials. Keep the key in an environment variable.

2. Send a minimal request

curl https://www.gpt345.com/v1/chat/completions   -H "Authorization: Bearer $GPT345_API_KEY"   -H "Content-Type: application/json"   -d '{"model":"MODEL_ID","messages":[{"role":"user","content":"Reply with one short sentence."}]}'

Replace MODEL_ID with the exact identifier shown in the model hub or dashboard. Do not invent punctuation or version aliases.

3. Record the verification evidence

CheckEvidence
AuthenticationHTTP status and a non-empty response
Model routingReturned model ID or request log
BillingUsage fields, request ID and balance delta
Retry behaviorDo not resubmit a timed-out task until its status is known

4. Image and video billing boundaries

Image calls use an image-capable model and their own billing unit. Video calls are usually asynchronous: save the task ID, poll the status, and download only after a terminal success state.

Seedance is separate from the main site. Use sd.gpt345.com for its account, balance, API key and billing; they are not shared with the main site.

Common setup errors

401 or 403

Check the key, Bearer prefix, account access and model group permissions.

404 model not found

Copy the exact model ID from the current model page; also confirm that the path contains /v1 only once.

429 rate or quota error

Check balance, key limits and concurrency. Save the request ID before changing the retry strategy.

A video request timed out

Query the task status first. A client timeout does not prove that the upstream task was never created.