The Mirage API lets you process AI inference tasks on-demand.
While integrating the REST API, you may be interested in the following guides:
Transcribein Tasks
Get Transcribe Languages
List all languages that are available for transcription.
Map of supported locale codes
- GEThttps://api.mirage-ai.com/v1/task/transcribe/languages
(loading)
(loading)
Transcribe Speech
Transcribe speech from an audio file to text.
Can be set to stream the response using SSE
Locales to transcribe between
Locale code to transcribe to
Media file to transcribe
Media file MIME type
URL of the audio file to be transcribed
- POSThttps://api.mirage-ai.com/v1/task/transcribe/speech
(loading)
(loading)
Answerin Tasks
Answer Question
Answer a given question.
Can be set to stream the response using SSE
Question to generate an answer against
Answer prefill data
Start of answer text (answer text prefix)
Locales to answer between
Locale code to answer from
Context data used to enrich answering
Team details
Team identifier
Team name
Transcripts of current and past conversations
Curent conversation
List of messages for conversation
Message sender
Values
customer
agent
Message text
Related conversations from the past (supersedes dynamic context)
List of messages for conversation
Message sender
Values
customer
agent
Message text
- POSThttps://api.mirage-ai.com/v1/task/answer/question
(loading)
(loading)
Summarizein Tasks
Summarize Paragraphs
Summarize given paragraphs.
List of paragraphs to summarize
Paragraph text
- POSThttps://api.mirage-ai.com/v1/task/summarize/paragraphs
(loading)
(loading)
Summarize Conversation
Summarize a given conversation, from a list of messages.
Transcript of conversation to summarize
Message sender name
Message text
- POSThttps://api.mirage-ai.com/v1/task/summarize/conversation
(loading)
(loading)
Categorizein Tasks
Categorize Conversation
Categorize a given conversation, from a list of messages.
Transcript of conversation to categorize
Message sender
Values
customer
agent
Message text
- POSThttps://api.mirage-ai.com/v1/task/categorize/conversation
(loading)
(loading)
Translatein Tasks
Get Translate Languages
List all languages that are available for translation.
Map of supported locale codes
- GEThttps://api.mirage-ai.com/v1/task/translate/languages
(loading)
(loading)
Translate Text
Translate a provided text between two languages.
💡 Note that it is possible to ignore translation for certain parts of the text, by enclosing the text to keep pristine in a <span translate="no"></span>
tag. If using such do-not-translate tags, it is required that the type
marker is set to html
.
Locales to translate between
Locale code to translate from
Locale code to translate to
Type of content to translate
Values
plain
html
Text to translate
- POSThttps://api.mirage-ai.com/v1/task/translate/text
(loading)
(loading)
Contextin Data
Ingest Context Data
Ingest context data into account. This will be used eg. when answering a question.
Items to be ingested
Item operation (defaults to index
)
Values
index
reindex
delete
Primary identifier for the item
Secondary identifier for the item
Tertiary identifier for the item
Text content for the item
Timestamp for the item (UNIX format, in milliseconds)
Source tag for the item (eg. chat
)
Optional metadata to store alongside the item
- POSThttps://api.mirage-ai.com/v1/data/context/ingest
(loading)
(loading)