{"openapi":"3.1.0","info":{"title":"SiliconFlow account, models and batches (your key) API","version":"0.1.0","description":"SiliconFlow account, models and batches (your key) lets an AI assistant read your own SiliconFlow data through the SiliconFlow API with a key you supply (SiliconFlow API key). Read-only: 6 tools (get_user_info, list_models, list_batch_files, list_batches, get_batch, list_custom_voices). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached;...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-siliconflow.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-siliconflow/docs"},"termsOfService":"https://connectorbay.com/byok-siliconflow/terms"},"servers":[{"url":"https://byok-siliconflow.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-siliconflow/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/get_user_info":{"post":{"operationId":"get_user_info","summary":"Get the account status and balance of the key's owner: user id, account status, free balance, charged balance and total ","description":"Get the account status and balance of the key's owner: user id, account status, free balance, charged balance and total balance. Reads account metadata only: it runs no model and uses no credits. Use for \"How much SiliconFlow balance do I have left\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"get_user_infoArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_models":{"post":{"operationId":"list_models","summary":"List the models available to the key, optionally filtered by type (text, image, audio, video) or sub type (chat, embeddi","description":"List the models available to the key, optionally filtered by type (text, image, audio, video) or sub type (chat, embedding, reranker, text-to-image, image-to-image, speech-to-text, text-to-video). Reads account metadata only: it runs no model and uses no credits. Use for \"Which chat models does SiliconFlow offer\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"type":{"anyOf":[{"enum":["text","image","audio","video"],"type":"string"},{"type":"null"}],"default":null,"description":"Only models of this type.","title":"Type"},"sub_type":{"anyOf":[{"enum":["chat","embedding","reranker","text-to-image","image-to-image","speech-to-text","text-to-video"],"type":"string"},{"type":"null"}],"default":null,"description":"Only models of this sub type.","title":"Sub Type"}},"title":"list_modelsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_batch_files":{"post":{"operationId":"list_batch_files","summary":"List files uploaded for batch jobs (newest first): id, name, size, purpose, line count and creation time. Reads account ","description":"List files uploaded for batch jobs (newest first): id, name, size, purpose, line count and creation time. Reads account metadata only: it runs no model and uses no credits. Use for \"Which batch input files have I uploaded to SiliconFlow\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"purpose":{"const":"batch","description":"File purpose; only 'batch' is supported.","title":"Purpose","type":"string"},"limit":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many files to return (default 10).","title":"Limit"}},"required":["purpose"],"title":"list_batch_filesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_batches":{"post":{"operationId":"list_batches","summary":"List your batch jobs with status, endpoint, input and output file ids, request counts and timestamps. Reads account meta","description":"List your batch jobs with status, endpoint, input and output file ids, request counts and timestamps. Reads account metadata only: it runs no model and uses no credits. Use for \"What is the status of my SiliconFlow batch jobs\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_batchesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_batch":{"post":{"operationId":"get_batch","summary":"Get one batch job by id: status, endpoint, input, output and error file ids, request counts and timestamps. Reads accoun","description":"Get one batch job by id: status, endpoint, input, output and error file ids, request counts and timestamps. Reads account metadata only: it runs no model and uses no credits. Use for \"Is SiliconFlow batch batch_abc123 finished\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"batch_id":{"description":"Batch id returned when the batch was created, for example 'batch_abc123'.","maxLength":100,"title":"Batch Id","type":"string"}},"required":["batch_id"],"title":"get_batchArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_custom_voices":{"post":{"operationId":"list_custom_voices","summary":"List the custom reference voices uploaded to the account: model, custom name, sample text and voice URI. Reads account m","description":"List the custom reference voices uploaded to the account: model, custom name, sample text and voice URI. Reads account metadata only: it runs no model and uses no credits. Use for \"Which custom text-to-speech voices do I have on SiliconFlow\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"list_custom_voicesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}