# 星光API ## Docs - [星光API平台简介](https://xgapi.apifox.cn/8233870m0.md): - [所有对话模型均兼容 OpenAI 格式](https://xgapi.apifox.cn/8233772m0.md): - 热门应用对接 [Claude Code 安装使用教程](https://xgapi.apifox.cn/8376767m0.md): - 热门应用对接 [CodeX安装配置教程(Linux)](https://xgapi.apifox.cn/8395249m0.md): ## API Docs - 聊天对话 > ChatGPT(Chat) [创建聊天函数调用](https://xgapi.apifox.cn/417653495e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > ChatGPT(Chat) [创建视频, 带图片](https://xgapi.apifox.cn/417653492e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > ChatGPT(Chat) [连续修改生成视频](https://xgapi.apifox.cn/417653493e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > ChatGPT(Chat) [创建结构化输出](https://xgapi.apifox.cn/417653496e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > ChatGPT(Chat) [控制推理模型努力程度](https://xgapi.apifox.cn/417653497e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > ChatGPT(Responses) [创建模型响应](https://xgapi.apifox.cn/417656318e0.md): https://platform.openai.com/docs/api-reference/responses/create - 聊天对话 > ChatGPT(Responses) [创建函数调用](https://xgapi.apifox.cn/417656319e0.md): https://platform.openai.com/docs/api-reference/responses/create - 聊天对话 > ChatGPT(Responses) [创建模型响应(流式返回)](https://xgapi.apifox.cn/417656320e0.md): https://platform.openai.com/docs/api-reference/responses/create - 聊天对话 > ChatGPT(Responses) [创建模型响应 (控制思考长度)](https://xgapi.apifox.cn/417656321e0.md): https://platform.openai.com/docs/api-reference/responses/create - 聊天对话 > ChatGPT(Responses) [创建网络搜索](https://xgapi.apifox.cn/417656322e0.md): https://platform.openai.com/docs/api-reference/responses/create - 聊天对话 > ChatGPT(Responses) [创建模型响应 gpt-5启用思考](https://xgapi.apifox.cn/417656323e0.md): https://platform.openai.com/docs/api-reference/responses/create - 聊天对话 > Gemini官方格式 [创建视频](https://xgapi.apifox.cn/417653487e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Gemini官方格式 [GemIni原生接口格式](https://xgapi.apifox.cn/417663339e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/text-generation?hl=zh-cn#multi-turn-conversations - 聊天对话 > Gemini官方格式 [图片生成](https://xgapi.apifox.cn/417663342e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn - 聊天对话 > Gemini官方格式 [文档理解](https://xgapi.apifox.cn/417663350e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/document-processing?hl=zh-cn - 聊天对话 > Gemini官方格式 [视频理解](https://xgapi.apifox.cn/417663354e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/video-understanding?hl=zh-cn - 聊天对话 > Gemini官方格式 [音频理解](https://xgapi.apifox.cn/417663356e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/url-context?hl=zh-cn - 聊天对话 > Gemini官方格式 [TTS 文本转语音](https://xgapi.apifox.cn/417663358e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn#gemini-image-editing - 聊天对话 > Claude官方格式 [Chat兼容格式](https://xgapi.apifox.cn/418305730e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [联网搜索](https://xgapi.apifox.cn/417675587e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [创建格式化输出 ](https://xgapi.apifox.cn/417675583e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [创建函数调用 (流式)](https://xgapi.apifox.cn/417675582e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [创建思考聊天](https://xgapi.apifox.cn/417675584e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [PDF支持 ](https://xgapi.apifox.cn/417675585e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [PDF支持 base64格式](https://xgapi.apifox.cn/417675586e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 聊天对话 > Claude官方格式 [创建聊天补全 (流式)](https://xgapi.apifox.cn/417675581e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 绘画模型 > 通用生图(推荐) [Generations通用文生图](https://xgapi.apifox.cn/419486426e0.md): 该接口为绘图通用接口,支持常规图生图,文生图模型 - 绘画模型 > 通用生图(推荐) [Edits通用图像编辑&图生图](https://xgapi.apifox.cn/420622260e0.md): 该接口为通用图片编辑接口 - 绘画模型 > Gemini绘图 [Generations通用文生图](https://xgapi.apifox.cn/420624696e0.md): 该接口为绘图通用接口,支持常规图生图,文生图模型 - 绘画模型 > Gemini绘图 [Edits通用图像编辑&图生图](https://xgapi.apifox.cn/420624636e0.md): 该接口为通用图片编辑接口 - 绘画模型 > Gemini绘图 [Gemini原生格式](https://xgapi.apifox.cn/420624774e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn - 绘画模型 > Gemini绘图 [文生图text-to-image](https://xgapi.apifox.cn/435823444e0.md): - 绘画模型 > Gemini绘图 [图生图image-to-image](https://xgapi.apifox.cn/435823769e0.md): - 绘画模型 > 即梦绘画 [通用聊天格式](https://xgapi.apifox.cn/419615969e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 绘画模型 > 即梦绘画 [Gemini格式](https://xgapi.apifox.cn/419616012e0.md): 官方文档:https://ai.google.dev/gemini-api/docs/image-generation?hl=zh-cn - 绘画模型 > GPT-Image [gpt-image-2 创建图像](https://xgapi.apifox.cn/448732808e0.md): OpenAI官转分组完全兼容官方的接口以及参数 - 绘画模型 > GPT-Image [gpt-image-2 图像编辑](https://xgapi.apifox.cn/448743250e0.md): 该接口为通用图片编辑接口 - 视频模型 > 统一接口 [创建视频](https://xgapi.apifox.cn/421149640e0.md): - 视频模型 > 统一接口 [查询结果](https://xgapi.apifox.cn/421149646e0.md): 给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。 - 视频模型 > Grok视频 [文生视频](https://xgapi.apifox.cn/424138157e0.md): 不提供图片,仅通过文本描述生成视频。同样支持可选的 video_config 参数。 - 视频模型 > Grok视频 [图生视频(URL)](https://xgapi.apifox.cn/424136365e0.md): 通过图片 URL 生成视频 - 视频模型 > Grok视频 [图生视频(Base64) ](https://xgapi.apifox.cn/424136376e0.md): 通过图片Base64生成视频 - 视频模型 > 即梦Seedance2.0 > 国际版#特价 [创建视频(国际版JSON格式)](https://xgapi.apifox.cn/437389902e0.md): sdance2-fast、sdance2-fast-5s、sdance2-fast-10s、sdance2-fast-15s均为官方满血fast模型 - 视频模型 > 即梦Seedance2.0 > 国际版#特价 [创建视频(国际版FORM格式)](https://xgapi.apifox.cn/436875083e0.md): sdance2-fast、sdance2-fast-5s、sdance2-fast-10s、sdance2-fast-15s均为官方满血fast模型 - 视频模型 > 即梦Seedance2.0 > 国际版#特价 [查询结果](https://xgapi.apifox.cn/436878122e0.md): task_id为创建视频返回的任务id - 视频模型 > 即梦Seedance2.0 > 国内版 [文生视频](https://xgapi.apifox.cn/444231142e0.md): - 视频模型 > 即梦Seedance2.0 > 国内版 [单图生视频](https://xgapi.apifox.cn/444231742e0.md): 此为单图生视频接口说明 - 视频模型 > 即梦Seedance2.0 > 国内版 [首尾帧生视频](https://xgapi.apifox.cn/444232161e0.md): 此接口为首尾帧图片传参说明 - 视频模型 > 即梦Seedance2.0 > 国内版 [多图参考模式](https://xgapi.apifox.cn/444232701e0.md): 此为多图参考视频生成接口说明 - 视频模型 > 即梦Seedance2.0 > 国内版 [全能参考模式](https://xgapi.apifox.cn/444233071e0.md): 此为全能参考模式接口说明,content支持图片、视频、音频作为参考 - 视频模型 > 即梦Seedance2.0 > 国内版 [视频编辑](https://xgapi.apifox.cn/444233118e0.md): 此为视频编辑说明 - 视频模型 > 即梦Seedance2.0 > 国内版 [视频延长](https://xgapi.apifox.cn/444233490e0.md): 此为视频延长接口说明 - 视频模型 > 即梦Seedance2.0 > 国内版 [查询结果](https://xgapi.apifox.cn/444247917e0.md): - 音频模型 > MiniMax音乐生成 [音乐生成](https://xgapi.apifox.cn/444143274e0.md): 使用本接口,输入歌词和歌曲描述,进行歌曲生成。 - 音频模型 > MiniMax音乐生成 [歌词生成](https://xgapi.apifox.cn/444151076e0.md): 使用本接口生成歌词,支持完整歌曲创作和歌词编辑/续写。