SalpXXAPI News
Tags

#Beginners

Entry-level questions and plain-language concepts.

#Beginners

Archive →
Beginner Q&A6 min read

Q&A: HTTP 200 but the answer stops halfway—check finish_reason and stop_reason first

A successful status code means the request was processed, not that the text ended naturally. Read the stop reason before continuing, running a tool, raising a limit, or retrying.

Beginner Q&A4 min read

Q&A: should you retry a 429, a 503, or an insufficient-balance error?

Read error.code before acting. A 429 may mean throttling, exhausted credits, or a spend limit, while a 503 usually means temporary model overload; each needs a different response.

Beginner Q&A4 min read

Q&A: why does a video request return 200 but no video URL?

Video generation is asynchronous. A successful submission only gives you a task_id; beginners must save it, poll the status, and distinguish accepted from completed.

Beginner Q&A3 min read

Q&A: 429 Too Many Requests — who exactly is rate-limiting you

A 429 can come from upstream limits, gateway limits, or a spend cap. Read Retry-After and the rate-limit headers first to find the bottleneck, then decide: wait, slow down, or top up.

Beginner Q&A2 min read

Do Not Retry Yet: A Beginner’s Order for Reading API Errors

Classify 400, 401, 403, 404, 413, 429 and 5xx before fixing, slowing down, funding or waiting.

Beginner Q&A2 min read

What Is a Token? A Beginner’s Guide to Input, Output and Cost

A token is not a character count; English approximations do not transfer mechanically to Chinese, and history/tools consume budget.

Beginner Q&A2 min read

How to Fill base_url and /v1 Without Getting the Path Wrong

Use the API root as base_url; do not duplicate /v1 or put a resource path in it.

Beginner Q&A2 min read

Your First API Request in Five Minutes

The first request should validate auth, path, model, response and usage before tools or long history.

Beginner Q&A2 min read

Context Windows and max_tokens: Why a Short Answer Can Still Overflow

The window includes input, history, tools and output; max_tokens is an output budget, not extra space.

One key for Claude, GPT and 50+ models

The SalpX gateway is OpenAI-SDK compatible. Point base_url at https://www.salpx.com/v1 and you are done.