Skip to main content
Every time you call the Fhddos API — whether for chat completions, image generation, video, audio, embeddings, or reranking — the platform automatically assigns a unique request ID to that call and returns it in the response. You don’t need to configure anything; the ID is always there, ready for you to capture.

Response Headers

Each API response includes the following headers:
HeaderMeaning
X-Oneapi-Request-IdFhddos’s platform request ID — unique per API call
request-idAlias for X-Oneapi-Request-Id; included for client compatibility
X-Upstream-Request-IdThe upstream provider’s own request ID, if the provider returns one

Request IDs in Error Responses

When a request fails, the JSON error body also carries both IDs so you can correlate errors with headers even when you can’t inspect headers directly:
{
  "error": {
    "message": "Error description...",
    "type": "error_type",
    "request_id": "20260320153045abcdefgh",
    "upstream_request_id": "req_abc123..."
  }
}
FieldMeaning
error.request_idPlatform request ID
error.upstream_request_idUpstream provider’s request ID

Read Request IDs in Your Code

Pass the -i flag to print response headers alongside the body:
curl -i https://aiapi.fhddos.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o","messages":[{"role":"user","content":"Hello"}]}'
Look for these lines in the output:
X-Oneapi-Request-Id: 20260320153045abcdefgh
request-id: 20260320153045abcdefgh
X-Upstream-Request-Id: req_abc123...

Use Cases

Submit Support Tickets

Always include the platform request ID when opening a ticket. It lets the support team locate the exact call and internal upstream trace within seconds.

Upstream Tracing

If you need to escalate an issue to an upstream provider, supply X-Upstream-Request-Id as the reference. Without it, upstream teams can’t locate the original request.

Programmatic Logging

Capture request IDs in your application code and write them to your own observability system. This gives you end-to-end traceability from your user sessions all the way to upstream providers.
In production, log the platform request ID for every API call. If something goes wrong hours or days later, the ID is the fastest path to a resolution.