1. 接口调用说明
Nexhina 国际版
  • 开始使用
    • 产品简介
    • 快速入门
    • 在 AI 编程工具中使用 Nexhina
  • 开始使用 Copy
    • 产品简介
    • 快速入门
    • 在 AI 编程工具中使用 Nexhina
  • API 接口
    • 接口调用说明
      • 快速开始
      • 获取 API Key
      • 鉴权方式
      • 请求地址
      • 错误码说明
      • 流式输出说明
    • Chat
      • 对话补全
    • Models
      • 列出可用模型
    • Responses
      • Responses API
    • Embeddings
      • 文本向量化
    • Images
      • 生成图像
    • Audio
      • 文本转语音(TTS)
      • 语音转文本(STT)
      • 语音翻译
    • Video
      • 生成视频
    • Moderation
      • 内容审核
    • Rerank
      • 重排序
  • 平台相关
    • 常见问题
    • 平台协议
    • 隐私政策
  • Schemas
    • ChatRequest
    • Log
    • ChatMessage
    • ToolCall
    • User
    • FunctionDefinition
    • Channel
    • ToolDefinition
    • Token
    • ChatCompletionRequest
    • Redemption
    • ChatCompletionChoice
    • ChatCompletionResponse
    • ChatCompletionChunk
    • ResponseInputText
    • ResponseRequest
    • ResponseOutputText
    • ResponseOutputMessage
    • ResponseObject
    • EmbeddingRequest
    • EmbeddingData
    • EmbeddingResponse
    • ImageGenerationRequest
    • ImageData
    • ImageUsageInputTokensDetails
    • ImageUsage
    • ImageGenerationResponse
    • SpeechRequest
    • TranscriptionRequest
    • TranslationRequest
    • TranscriptionResponse
    • TranslationResponse
    • VideoGenerationRequest
    • VideoData
    • VideoGenerationResponse
    • ModerationRequest
    • ModerationCategory
    • ModerationResult
    • ModerationResponse
    • RerankRequest
    • RerankResult
    • RerankResponse
  1. 接口调用说明

请求地址

请求地址#

Base URL#

 https://token.nexhina.cn

完整地址规则#

{Base URL}{接口路径}
示例:
接口完整地址
Chat https://token.nexhina.cn/v1/chat/completions
Responses https://token.nexhina.cn/v1/responses
Embeddings https://token.nexhina.cn/v1/embeddings
Images https://token.nexhina.cn/v1/images/generations
TTShttps://token.nexhina.cn/v1/audio/speech`
STThttps://token.nexhina.cn/v1/audio/transcriptions`
Translationhttps://token.nexhina.cn/v1/audio/translations`
Videohttps://token.nexhina.cn/v1/video/generations`
Moderationhttps://token.nexhina.cn/v1/moderations`
Rerankhttps://token.nexhina.cn/v1/rerank`
Modelshttps://token.nexhina.cn/v1/models`

SDK 中设置 Base URL#

只需设置 base_url 为 https://token.nexhina.cn/v1`(注意末尾带 /v1),SDK 会自动拼接后续路径。

Modified at 2026-06-29 08:45:13
Previous
鉴权方式
Next
错误码说明
Built with