Skip to main content
The examples below use OpenAI Chat Completions. First confirm the selected model and protocol in the API and model capability matrix.

Core settings

  • Base URL: https://nexusapi.link/v1
  • API key: create it in the NexusAPI console; it usually begins with sk-
  • Model ID: copy the exact ID from the Model Marketplace for the current key’s group

Python

JavaScript

cURL

Do not put an actual key in source code or commit it to a repository. These Chat Completions examples apply only when supported_endpoint_types contains openai. Use Responses API and Codex only when it contains openai-response. Image generation uses a different endpoint; see the image model guide.