Skip to main content
New to Corsair? See API access, authentication, and error handling.

Balance

get

balance.get Read the remaining API credits, the funding source and the wallet amount Risk: read
Input: empty object Output

Capabilities

get

capabilities.get Read the features enabled for the key, such as image generation Risk: read
Input: empty object Output

Chat

completions

chat.completions Generate a chat completion from a conversation, which spends credits on every call Risk: destructive
Input Spends credits; messages take a plain string content, and a temperature runs from 0 to 2.
Output

Images

create

images.create Generate an image from a prompt, returning its URL, and spend credits per image Risk: destructive
Input Spends credits per image. TextCortex makes one image per call and returns a URL. Output

Models

list

models.list List the chat models available to the key, with their IDs and owners Risk: read
Input: empty object Use the base model ID rather than a deprecated -thinking variant; chat.completions takes reasoning_effort for that. Output

Responses

create

responses.create Generate one response from a prompt and optional instructions, which spends credits Risk: destructive
Input Spends credits; store is always sent as false and store: true is rejected. Output

Web

web.search Search the web and return matching sources with snippets; each search spends credits Risk: read
Input Spends credits per search; returns up to 10 results in data, and website limits them to one site. Output