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
billing_source full type
billing_source full type
wallet full type
wallet full type
Capabilities
get
capabilities.get
Read the features enabled for the key, such as image generation
Risk: read
Chat
completions
chat.completions
Generate a chat completion from a conversation, which spends credits on every call
Risk: destructive
Spends credits; messages take a plain string content, and a temperature runs from 0 to 2.
messages full type
messages full type
response_format full type
response_format full type
choices full type
choices full type
usage full type
usage full type
Images
create
images.create
Generate an image from a prompt, returning its URL, and spend credits per image
Risk: destructive
Spends credits per image. TextCortex makes one image per call and returns a URL.
Output
data full type
data full type
Models
list
models.list
List the chat models available to the key, with their IDs and owners
Risk: read
data full type
data full type
Responses
create
responses.create
Generate one response from a prompt and optional instructions, which spends credits
Risk: destructive
Spends credits; store is always sent as false and store: true is rejected.
Output
output full type
output full type
incomplete_details full type
incomplete_details full type
usage full type
usage full type
Web
search
web.search
Search the web and return matching sources with snippets; each search spends credits
Risk: read
Spends credits per search; returns up to 10 results in
data, and website limits them to one site.
Output
data full type
data full type
usage full type
usage full type
meta full type
meta full type