Skip to main content

One-line answer

The APIYI Request ID is the X-Shellapi-Request-Id response header. It looks like this:
When a request fails, the same value also appears at the end of the error message: ... (request id: 2026111...). Send that string to support.
The console Logs page does not show the Request ID. It lists the time, model, token, token counts, cost, group, IP, and similar fields—but not the X-Shellapi-Request-Id header, and there is no way to search by it. The logs can confirm that a call arrived and was billed, but the Request ID is only available from the error message or a response header.
The Request ID is not an API key. It is safe to paste into a ticket, chat, or screenshot. What you must never send is the full API key (the sk-... string).

Pick a method

Method 1: Copy it from the error message

Most API errors put the Request ID at the end of message. For example:
Three steps:
  1. Expand the error details in your client, or open the raw response.
  2. Find the message field and copy the string inside (request id: ...).
  3. If the client only shows a generic “request failed” or “Internal Server Error”, it is hiding the response body. See “The console logs do not show the Request ID” below.
The value in the parentheses is exactly the same as the X-Shellapi-Request-Id header. Either source works.

The console logs do not show the Request ID

Many users look in the console Logs first, but the Logs page does not display X-Shellapi-Request-Id. A log row shows:
  • Time, model, token name;
  • Streaming / non-streaming, duration, status;
  • Input / output tokens, cost;
  • Group, multiplier, IP.
These fields are enough to confirm whether the call reached APIYI, which model it used, and how much it cost—but they cannot give you the Request ID. If your client did not keep the error text and you cannot read response headers, include the following when you contact support:
  1. Call time with timezone, e.g. 2026-11-16 11:35:21 (UTC+8);
  2. Token name and model;
  3. Cost and status (success / failure);
  4. The raw client error or exception.
If you already have the Request ID from an error or response header, use its first 14 UTC digits to match the call time shown in the logs. For example, 20261116022245... is 2026-11-16 02:22:45 UTC, which is 10:22:45 (UTC+8).
Logs are retained for the current month plus the two previous calendar months. Older calls cannot be found. See How long are call logs kept?.

Method 2: Read the response header

Every model-calling endpoint—text, image, embeddings, Claude Messages, Responses, and the submit/query calls of asynchronous video—returns this header:
Header names are case-insensitive, so x-shellapi-request-id works too. Every response returned by the APIYI gateway—success, application error, or streaming—carries this header; for streaming calls, the headers arrive before the first data chunk.

cURL

-D headers.txt saves the response headers, and -o resp.json saves the body. Keep both when a request fails.

Python (requests)

OpenAI SDK

The normal OpenAI SDK return value does not expose this header. Its _request_id reads x-request-id, which is usually empty on APIYI. Use with_raw_response, or read the header from the exception response.
Non-streaming:
Streaming:
On error:

Node.js / browser

When browser JavaScript calls the API cross-origin, CORS normally prevents it from reading X-Shellapi-Request-Id. Record the header in a backend proxy, or view it in DevTools under Network → the request → Response Headers.

Postman

Open the request → Response → Headers and search for x-shellapi. You can also import the cURL command above into Postman.

Other IDs that are not the Request ID

Responses often contain several IDs. Do not send the wrong one to support:
In the current format, a real APIYI Request ID starts with a 14-digit UTC timestamp, for example 20261116.... If it starts with req_, chatcmpl-, or resp_, or looks like a UUID, it is not the APIYI Request ID.

Async video: Request ID vs. task ID

Video and some other asynchronous tasks do not return the result in one request. When you submit a task:
  • The X-Shellapi-Request-Id response header is the Request ID of this submission request;
  • The task ID in the response body is what you use to poll or query the task.
Save both. Use the task ID to query the task and its billing; use the Request ID when investigating why the submission failed or was slow.
Each task query also returns a new X-Shellapi-Request-Id. If the query request failed, use the ID from the query response; if the submission failed, use the ID from the submission response.
The request_id in a Wan / HappyHorse response body is the upstream provider’s request ID, not the APIYI Request ID. For support, still use the X-Shellapi-Request-Id header.

What if there is no Request ID?

Check which case applies:
  • The request failed before any response arrived: DNS failure, TCP/TLS connection failure, proxy rejection, or a client-side timeout. APIYI never had a chance to return response headers, so there is no Request ID. Provide the call time, model, endpoint, and the full client exception instead.
  • The client only says “request failed”: it is not showing the response body. See “The console logs do not show the Request ID” above and include the log time, model, token, and cost.
  • The ID starts with req_...: this is usually an OpenAI request ID, which means the request may have gone to OpenAI directly instead of APIYI. Check that the Base URL is https://api.apiyi.com/v1.
  • The console logs do not show it: this is expected—the Logs page does not display the Request ID. Do not search for it there; provide the log fields and the raw error as described above.

What to include in a support ticket

Copy this template and fill it in:
For asynchronous video, add:
Never send the full API key. The Request ID is not a secret and is safe to share. If the request body, images, or business data contain private information, redact it first.

How Can I View My Call Logs?

View calls and billing by time and model in the console

How Do I Troubleshoot Model Errors?

Troubleshoot errors by type, parameters, groups, timeouts, and logs

Log Query API

Query a single call programmatically by request_id (the console page does not show this field)

Seedance Tasks and Billing

Look up a video task and its real cost by task_id