One-line answer
The APIYI Request ID is theX-Shellapi-Request-Id response header. It looks like this:
... (request id: 2026111...). Send that string to support.
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 ofmessage. For example:
- Expand the error details in your client, or open the raw response.
- Find the
messagefield and copy the string inside(request id: ...). - 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 console logs do not show the Request ID
Many users look in the console Logs first, but the Logs page does not displayX-Shellapi-Request-Id. A log row shows:
- Time, model, token name;
- Streaming / non-streaming, duration, status;
- Input / output tokens, cost;
- Group, multiplier, IP.
- Call time with timezone, e.g.
2026-11-16 11:35:21 (UTC+8); - Token name and model;
- Cost and status (success / failure);
- The raw client error or exception.
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: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
Non-streaming: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 forx-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: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-Idresponse 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.
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.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 ishttps://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:Related documentation
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