Skip to main content
Use this API for models labelled anthropic in the Model Marketplace or the model list for your current key. Read the API and model capability matrix first: the model, key group, and protocol must all match.
Messages is not a universal endpointUse Chat Completions for OpenAI-compatible applications. Do not switch a current Anthropic-type Claude channel to /v1/responses; not implemented normally means a protocol mismatch, not a temporary error that retries can solve.

Endpoint and minimum request

Use the Apifox API reference and the protocol documentation for your Anthropic client for full fields, tools, streaming, and response schemas. Optional-field availability still depends on the selected model and channel.

Use the Anthropic SDK

The native SDK manages its required protocol headers. Pass a NexusAPI key to the SDK and set its Base URL without /v1:
The SDK appends /v1/messages. Do not set base_url to https://nexusapi.link/v1/messages, which can create a repeated path or 404.

Claude Code versus your own app

Troubleshooting

  • 401: Check that the key is correct, enabled, and has not been reset after exposure.
  • 404: Check whether an SDK has appended a second /v1.
  • 400: Verify with only model, max_tokens, and messages, then add optional fields gradually.
  • 500, not implemented: Make sure an Anthropic-type model is not being sent through /v1/responses.
For persistent errors, keep the Request ID and a redacted request, then use the self-check guide.