{"openapi":"3.0.0","info":{"description":"SiliconFlow AI inference platform — OpenAI-compatible v1: chat, embeddings, image, audio; static Bearer key.","version":"v1"},"servers":[{"description":"SiliconFlow AI inference platform — OpenAI-compatible v1: chat, embeddings, image, audio; static Bearer key.","url":"https://api.apirails.com/siliconflow"}],"paths":{"/audio/transcriptions":{"post":{"tags":["Audio"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/audio/create-audio-transcriptions.md","api_endpoint":"https://api.siliconflow.com/v1/audio/transcriptions"},"summary":"Create audio transcription","description":"Create Audio Transcriptions | Creates an audio transcription.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"file":{"type":"string","description":"The audio file object (not file name) to transcribe","required":true},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true}}},"example":{"file":["/path/to/file/audio.mp3"],"model":["FunAudioLLM/SenseVoiceSmall"]}}}}}},"/audio/speech":{"post":{"tags":["Audio"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/audio/create-speech.md","api_endpoint":"https://api.siliconflow.com/v1/audio/speech"},"summary":"Create speech","description":"Create Speech | Generate audio from input text. The data generated by the interface is the binary data of the audio, which requires the user to handle it themselves. Reference:https://docs.siliconflow.com/capabilities/text-to-speech#5","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"gain":{"type":"number","description":"body.gain (number field from the documented request schema)"},"input":{"type":"string","description":"The text to generate audio for.","required":true},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true},"response_format":{"type":"string","description":"The format to audio out. Supported formats are `mp3`, `opus`, `wav`, `pcm`"},"sample_rate":{"type":"number","description":"Control the output sample rate. The default values and differ for different video output types, as follows: opus: Supports 48000 Hz. wav, pcm: Supports 8000, 16000, 24000, 32000, 44100 Hz, with a default of 44100 Hz. mp3: Supports 32000, 44100 Hz, with a default of 44100 Hz."},"speed":{"type":"number","description":"The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is the default."},"stream":{"type":"boolean","description":"streaming or not","enum":[true,false]},"voice":{"type":"string","description":"body.voice (string field from the documented request schema)","required":true}}},"example":{"gain":[0],"input":["The text to generate audio for"],"model":["fishaudio/fish-speech-1.5"],"response_format":["mp3"],"sample_rate":[32000],"speed":[1],"stream":[true],"voice":["fishaudio/fish-speech-1.5:alex"]}}}}}},"/audio/voice/deletions":{"post":{"tags":["Audio"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/audio/delete-voice.md","api_endpoint":"https://api.siliconflow.com/v1/audio/voice/deletions"},"summary":"Delete user voice","description":"Delete User Voice | Delete user-defined voice style","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"uri":{"type":"string","description":"Voice style to be deleted by the user","required":true}}},"example":{"uri":["speech:your-voice-name:xxx:xxxx"]}}}}}},"/uploads/audio/voice":{"post":{"tags":["Audio"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/audio/upload-voice.md","api_endpoint":"https://api.siliconflow.com/v1/uploads/audio/voice"},"summary":"Upload reference audio voice","description":"Upload Voice | Upload user-provided voice style, which can be in base64 encoding or file format. Refer to (https://docs.siliconflow.com/capabilities/text-to-speech#2-2)","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":false,"content":{"multipart/form-data":{"schema":{"type":"object","required":[],"properties":{"text":{"type":"string","description":"Corresponding text content for the audio","required":true},"audio":{"type":"string","description":"Audio file encoded in base64 with the header format of `data:audio/mpeg;base64`. Provide either audio (base64) or file."},"customName":{"type":"string","description":"User-defined voice style name","required":true},"file":{"type":"string","format":"binary","description":"Audio file to upload. Provide either file or audio (base64)."},"model":{"type":"string","description":"Predefined voice style model name","required":true,"enum":["FunAudioLLM/CosyVoice2-0.5B"]}}},"example":{"text":["In the midst of ignorance, a day in the dream comes to an end, and a new cycle begins."],"audio":["data:audio/mpeg;base64,aGVsbG93b3JsZA=="],"customName":["your-voice-name"],"file":"(binary)","model":["FunAudioLLM/CosyVoice2-0.5B"]}}}}}},"/audio/voice/list":{"get":{"tags":["Audio"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/audio/voice-list.md","api_endpoint":"https://api.siliconflow.com/v1/audio/voice/list"},"summary":"List reference audio voices","description":"Get Voice List | Get list of user-defined voice styles","security":[{"bearerAuth":[]}]}},"/chat/completions":{"post":{"tags":["Chat Completions"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/chat-completions/chat-completions.md","api_endpoint":"https://api.siliconflow.com/v1/chat/completions"},"summary":"Create chat completion","description":"Chat Completions | Creates a model response for the given chat conversation.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"enable_thinking":{"type":"boolean","description":"Switches between thinking and non-thinking modes. Default is True.  This field supports the following models: \n    - Qwen/Qwen3-8B\n    - Qwen/Qwen3-14B\n    - Qwen/Qwen3-32B\n    - wen/Qwen3-30B-A3B\n    - Qwen/Qwen3-235B-A22B\n    - tencent/Hunyuan-A13B-Instruct\n    - zai-org/GLM-5V-Turbo\n    - zai-org/GLM-4.6V\n    - zai-org/GLM-4.5V\n    - deepseek-ai/DeepSeek-V3.1\n    - deepseek-ai/DeepSeek-V3.1-Terminus\n    - deepseek-ai/DeepSeek-V3.2-Exp\n    - deepseek-ai/DeepSeek-V3.2\nIf you want to use the function call feature for deepseek-ai/DeepSeek-V3.1, you need to set enable_thinking to false.","enum":[true,false]},"frequency_penalty":{"type":"number","description":"body.frequency_penalty (number field from the documented request schema)"},"max_tokens":{"type":"number","description":"The maximum number of tokens to generate. Ensure that input tokens + max_tokens do not exceed the model’s context window. As some services are still being updated, avoid setting max_tokens to the window’s upper bound; reserve ~10k tokens as buffer for input and system overhead. See Models(https://cloud.siliconflow.cn/models) for details."},"messages":{"type":"array","description":"A list of messages comprising the conversation so far.","required":true,"items":{"type":"object","properties":{"content":{"type":"string","description":"The contents of the message.","required":true},"role":{"type":"string","description":"The role of the messages author. Choice between: system, user, or assistant.","required":true}}}},"min_p":{"type":"number","description":"Dynamic filtering threshold that adapts based on token probabilities.This field only applies to Qwen3."},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true},"n":{"type":"number","description":"Number of generations to return"},"response_format":{"type":"object","description":"An object specifying the format that the model must output.","properties":{"type":{"type":"string","description":"The type of the response format."}}},"stop":{"type":"string","description":"Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence."},"stream":{"type":"boolean","description":"If set, tokens are returned as Server-Sent Events as they are made available. Stream terminates with `data: [DONE]`","enum":[true,false]},"temperature":{"type":"number","description":"Determines the degree of randomness in the response."},"thinking_budget":{"type":"number","description":"Maximum number of tokens for chain-of-thought output. This field applies to all Reasoning models."},"tools":{"type":"array","description":"A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for. A max of 128 functions are supported.","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the tool. Currently, only `function` is supported.","required":true},"function":{"type":"object","description":"body.tools.function (object field from the documented request schema)","required":true}}}},"top_k":{"type":"number","description":"body.top_k (number field from the documented request schema)"},"top_p":{"type":"number","description":"The `top_p` (nucleus) parameter is used to dynamically adjust the number of choices for each predicted token based on the cumulative probabilities."}}},"example":{"enable_thinking":[false],"frequency_penalty":[0.5],"max_tokens":[4096],"messages":[[{"content":"What opportunities and challenges will the Chinese large model industry face in 2025?","role":"user"}]],"min_p":[0.05],"model":["Qwen/Qwen3-32B"],"n":[1],"response_format":[{"type":"text"}],"stop":["string"],"stream":[false],"temperature":[0.7],"thinking_budget":[4096],"tools":[[{"type":"function","function":{"description":"string","name":"string","parameters":{},"strict":false}}]],"top_k":[50],"top_p":[0.7]}}}}}},"/messages":{"post":{"tags":["Chat Completions"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/chat-completions/messages.md","api_endpoint":"https://api.siliconflow.com/v1/messages"},"summary":"Create message (Anthropic compatible)","description":"Chat Completions | Creates a model response for the given chat conversation.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"max_tokens":{"type":"number","description":"The maximum number of tokens to generate before stopping.\nNote that our models may stop _before_ reaching this maximum. This parameter only specifies the absolute maximum number of tokens to generate.\nDifferent models have different maximum values for this parameter.  See [models](https://docs.siliconflow.com/cn/userguide/capabilities/text-generation) for details.","required":true},"messages":{"type":"array","description":"A list of messages comprising the conversation so far.","required":true,"items":{"type":"object","properties":{"content":{"type":"string","description":"The contents of the message.","required":true},"role":{"type":"string","description":"The role of the messages author. Choice between: system, user.","required":true}}}},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true},"stop_sequences":{"type":"array","description":"Custom text sequences that will cause the model to stop generating.\nOur models will normally stop when they have naturally completed their turn, which will result in a response `stop_reason` of `\"end_turn\"`.\nIf you want the model to stop generating when it encounters custom strings of text, you can use the `stop_sequences` parameter. If the model encounters one of the custom sequences, the response `stop_reason` value will be `\"stop_sequence\"` and the response `stop_sequence` value will contain the matched stop sequence.","items":{"type":"string"}},"stream":{"type":"boolean","description":"If set, tokens are returned as Server-Sent Events as they are made available. Stream terminates with `data: [DONE]`","enum":[true,false]},"system":{"type":"string","description":"System prompt.\nA system prompt is a way of providing context and instructions to llm, such as specifying a particular goal or role."},"temperature":{"type":"number","description":"Determines the degree of randomness in the response."},"tool_choice":{"type":"object","description":"The model will automatically decide whether to use tools.","properties":{"type":{"type":"string","description":"body.tool_choice.type (string field from the documented request schema)","required":true},"disable_parallel_tool_use":{"type":"boolean","description":"Whether to disable parallel tool use.\nDefaults to `false`. If set to `true`, the model will output at most one tool use.","enum":[true,false]}}},"tools":{"type":"array","description":"Each tool definition includes:\n  * `name`: Name of the tool.\n  * `description`: Optional, but strongly-recommended\n  description of the tool.\n  * `input_schema`: [JSON\n  schema](https://json-schema.org/draft/2020-12) for the\n  tool `input` shape that the model will produce in\n  `tool_use` output content blocks.","items":{"type":"object","properties":{"input_schema":{"type":"object","description":"body.tools.input_schema (object field from the documented request schema)","required":true},"name":{"type":"string","description":"Name of the tool.\nThis is how the tool will be called by the model and in `tool_use` blocks.","required":true}}}},"top_k":{"type":"number","description":"body.top_k (number field from the documented request schema)"},"top_p":{"type":"number","description":"The `top_p` (nucleus) parameter is used to dynamically adjust the number of choices for each predicted token based on the cumulative probabilities."}}},"example":{"max_tokens":[8192],"messages":[[{"content":"What opportunities and challenges will the Chinese large model industry face in 2025?","role":"user"}]],"model":["moonshotai/Kimi-K2-Instruct"],"stop_sequences":[["string"]],"stream":[true],"system":["string"],"temperature":[0.7],"tool_choice":[{"type":"auto","disable_parallel_tool_use":false}],"tools":[[{"input_schema":{"type":"object","properties":{},"required":["string"]},"name":"string"}]],"top_k":[50],"top_p":[0.7]}}}}}},"/completions":{"post":{"tags":["Completions"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/completion/create-completion.md","api_endpoint":"https://api.siliconflow.com/v1/completions"},"summary":"Create completion","description":"Create completion | Query a language, code, or image model.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"frequency_penalty":{"type":"number","description":"A number between -2.0 and 2.0 where a positive value decreases the likelihood of repeating tokens that have already been mentioned."},"logit_bias":{"type":"object","description":"Adjusts the likelihood of specific tokens appearing in the generated output.","properties":{}},"max_tokens":{"type":"number","description":"The maximum number of tokens to generate."},"model":{"type":"string","description":"The name of the model to query [See all of SiliconFlow's chat models](https://docs.siliconflow.com/api-reference/models/get-model-list)","required":true},"n":{"type":"number","description":"The number of completions to generate for each prompt."},"presence_penalty":{"type":"number","description":"A number between -2.0 and 2.0 where a positive value increases the likelihood of a model talking about new topics."},"prompt":{"type":"string","description":"A string providing context for the model to complete.","required":true},"repetition_penalty":{"type":"number","description":"A number that controls the diversity of generated text by reducing the likelihood of repeated sequences. Higher values decrease repetition."},"seed":{"type":"number","description":"If specified, the system will make its best effort to perform deterministic sampling, so repeated requests with the same seed and parameters should return the same results. Determinism is not guaranteed to be implemented; the system_fingerprint response parameter should be referenced to monitor backend changes."},"stop":{"type":"array","description":"A list of string sequences that will truncate (stop) inference text output. For example, \"\" will stop generation as soon as the model generates the given token.","items":{"type":"string"}},"stream":{"type":"boolean","description":"If true, stream tokens as Server-Sent Events as the model generates them instead of waiting for the full model response. The stream terminates with `data: [DONE]`. If false, return a single JSON object containing the results.","enum":[true,false]},"temperature":{"type":"number","description":"A decimal number from 0-1 that determines the degree of randomness in the response. A temperature less than 1 favors more correctness and is appropriate for question answering or summarization. A value closer to 1 introduces more randomness in the output."},"top_k":{"type":"number","description":"An integer that's used to limit the number of choices for the next predicted word or token. It specifies the maximum number of tokens to consider at each step, based on their probability of occurrence. This technique helps to speed up the generation process and can improve the quality of the generated text by focusing on the most likely options."},"top_p":{"type":"number","description":"A percentage (also called the nucleus parameter) that's used to dynamically adjust the number of choices for each predicted token based on the cumulative probabilities. It specifies a probability threshold below which all less likely tokens are filtered out. This technique helps maintain diversity and generate more fluent and natural-sounding text."}}},"example":{"frequency_penalty":[0],"logit_bias":[{"105":21.4,"1024":-10.5}],"max_tokens":[0],"model":["deepseek-ai/DeepSeek-R1"],"n":[0],"presence_penalty":[0],"prompt":["<s>[INST] What is the capital of Germany? [/INST]"],"repetition_penalty":[0],"seed":[42],"stop":[["string"]],"stream":[false],"temperature":[0],"top_k":[0],"top_p":[0]}}}}}},"/embeddings":{"post":{"tags":["Embeddings"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/embeddings/create-embeddings.md","api_endpoint":"https://api.siliconflow.com/v1/embeddings"},"summary":"Create embeddings","description":"Create Embeddings | Creates an embedding vector representing the input text.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"dimensions":{"type":"number","description":"The number of dimensions the resulting output embeddings should have. Only supported in `Qwen/Qwen3` series.  - Qwen/Qwen3-Embedding-8B: [64,128,256,512,768,1024,2048,4096] -  Qwen/Qwen3-Embedding-4B:[64,128,256,512,768,1024,2048] - Qwen/Qwen3-Embedding-0.6B: [64,128,256,512,768,1024]"},"encoding_format":{"type":"string","description":"\"The format to return the embeddings in. Can be either `float` or [`base64`](https://pypi.org/project/pybase64/). \""},"input":{"type":"string","description":"The string that will be turned into an embedding. the item must not exceed the max models tokens limitation.","required":true},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true}}},"example":{"dimensions":[1024],"encoding_format":["float"],"input":["Silicon flow embedding online: fast, affordable, and high-quality embedding services. come try it out!"],"model":["Qwen/Qwen3-Embedding-8B"]}}}}}},"/images/generations":{"post":{"tags":["Images"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/images/images-generations.md","api_endpoint":"https://api.siliconflow.com/v1/images/generations"},"summary":"Create image","description":"Image Generation | Creates an image response for the given prompt. The URL for the generated image is valid for one hour. Please make sure to download and store it promptly to avoid any issues due to URL expiration.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"image_size":{"type":"string","description":"Image resolution in \"widthxheight\" format. Supported resolutions:\n  - \"512x512\" (1:1)\n  - \"768x1024\" (3:4)\n  - \"1024x768\" (4:3)\n  - \"576x1024\" (9:16)\n  - \"1024x576\" (16:9)"},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true},"output_format":{"type":"string","description":"Output format for the generated image."},"prompt":{"type":"string","description":"The text prompt describing the image to generate.","required":true},"seed":{"type":"number","description":"Random seed for reproducible generation. If not specified, a random seed will be used."}}},"example":{"image_size":["512x512"],"model":["black-forest-labs/FLUX.2-pro"],"output_format":["png"],"prompt":["A serene landscape with mountains and a lake at sunset"],"seed":[0]}}}}}},"/models":{"get":{"tags":["Models"],"parameters":[{"name":"type","in":"query","description":"The type of models","required":false,"schema":{"type":"string","example":"","items":{"type":"string","enum":["text","image","audio","video"]}}},{"name":"sub_type","in":"query","description":"The sub type of models. You can use it to filter models individually without setting type.","required":false,"schema":{"type":"string","example":"","items":{"type":"string","enum":["chat","embedding","reranker","text-to-image","image-to-image","speech-to-text","text-to-video"]}}}],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/models/get-model-list.md","api_endpoint":"https://api.siliconflow.com/v1/models"},"summary":"List models","description":"Get Model List | Retrieve models information.","security":[{"bearerAuth":[]}]}},"/rerank":{"post":{"tags":["Rerank"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/rerank/create-rerank.md","api_endpoint":"https://api.siliconflow.com/v1/rerank"},"summary":"Create rerank","description":"Create Rerank | Creates a rerank request.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"documents":{"type":"array","description":"Currently, only string lists are supported. Document objects will be supported in the future.","required":true,"items":{"type":"string"}},"max_chunks_per_doc":{"type":"number","description":"Maximum number of chunks generated from within a document. Long documents are divided into multiple chunks for calculation, and the highest score among the chunks is taken as the document's score. only BAAI/bge-reranker-v2-m3, netease-youdao/bce-reranker-base_v1 support this field."},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true},"overlap_tokens":{"type":"number","description":"Number of token overlaps between adjacent chunks when documents are chunked. only BAAI/bge-reranker-v2-m3, netease-youdao/bce-reranker-base_v1 support this field."},"query":{"type":"string","description":"Required. The search query.","required":true},"return_documents":{"type":"boolean","description":"If false, the response does not include document text; if true, it includes the input document text.","enum":[true,false]},"top_n":{"type":"number","description":"Number of most relevant documents or indices to return."}}},"example":{"documents":[["apple","banana","fruit","vegetable"]],"max_chunks_per_doc":[0],"model":["Qwen/Qwen3-Reranker-8B"],"overlap_tokens":[0],"query":["Apple"],"return_documents":[false],"top_n":[4]}}}}}},"/user/info":{"get":{"tags":["User Info"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/userinfo/get-user-info.md","api_endpoint":"https://api.siliconflow.com/v1/user/info"},"summary":"Get user info","description":"Get user information | Get user information including balance and status","security":[{"bearerAuth":[]}]}},"/video/status":{"post":{"tags":["Video"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/videos/get_videos_status.md","api_endpoint":"https://api.siliconflow.com/v1/video/status"},"summary":"Get video status","description":"get video | Get the user-generated video. The URL for the generated video is valid for one hour. Please make sure to download and store it promptly to avoid any issues due to URL expiration.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"requestId":{"type":"string","description":"The requestId returned by the interface submit.","required":true}}},"example":{"requestId":["string"]}}}}}},"/video/submit":{"post":{"tags":["Video"],"parameters":[],"responses":{"401":{"description":"Bearer token required (Authorization header)","content":{"application/json":{}}}},"externalDocs":{"api_ref":"https://docs.siliconflow.com/en/api-reference/videos/videos_submit.md","api_endpoint":"https://api.siliconflow.com/v1/video/submit"},"summary":"Submit video","description":"Submit video | Generate a video through the input prompt. This API returns the user's current request ID. The user needs to poll the status interface to get the specific video link. The generated result is valid for 10 minutes, so please retrieve the video link promptly.","security":[{"bearerAuth":[]}],"requestBody":{"description":"","required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"image_size":{"type":"string","description":"Length-width ratio of the generated image.","required":true},"model":{"type":"string","description":"Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.","required":true},"negative_prompt":{"type":"string","description":"negative prompt"},"prompt":{"type":"string","description":"The text prompt to generate the video description from.","required":true},"seed":{"type":"number","description":"The seed for the random number generator."}}},"example":{"image_size":["1280x720"],"model":["Wan-AI/Wan2.2-T2V-A14B"],"negative_prompt":["string"],"prompt":["string"],"seed":[0]}}}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"bearerAuth":[]}]}