API calls for all endpoints tagged AsyncJobs.
Summary
Functions
Create async chat completion Submits a chat completion request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Create async embedding Submits an embedding request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Create async image edit Submits an image edit request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Create async image generation Submits an image generation request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Create async image variation Submits an image variation request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Create async OCR job Submits an OCR request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Create async rerank Submits a rerank request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Create async response Submits a response request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Create async speech Submits a speech synthesis request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. SSE streaming is not supported for async requests.
Create async text completion Submits a text completion request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Create async transcription Submits a transcription request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Get async chat completion job Retrieves the status and result of an async chat completion job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async embedding job Retrieves the status and result of an async embedding job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async image edit job Retrieves the status and result of an async image edit job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async image generation job Retrieves the status and result of an async image generation job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async image variation job Retrieves the status and result of an async image variation job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async OCR job Retrieves the status and result of an async OCR job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async rerank job Retrieves the status and result of an async rerank job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async response job Retrieves the status and result of an async response job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async speech job Retrieves the status and result of an async speech job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async text completion job Retrieves the status and result of an async text completion job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Get async transcription job Retrieves the status and result of an async transcription job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Functions
@spec create_async_chat_completion( Tesla.Env.client(), ExBifrost.Model.ChatCompletionRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async chat completion Submits a chat completion request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to serverchat_completion_request(ChatCompletionRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_embedding( Tesla.Env.client(), ExBifrost.Model.EmbeddingRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async embedding Submits an embedding request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Parameters
connection(ExBifrost.Connection): Connection to serverembedding_request(EmbeddingRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_image_edit(Tesla.Env.client(), String.t(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async image edit Submits an image edit request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to servermodel(String.t): Model identifier in formatprovider/modelimage(String.t): Image file to edit. Use field nameimagefor a single file orimage[]for multiple files.opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.:prompt(String.t): Text prompt describing the edit. Required unlesstypeisbackground_removal.:mask(String.t): Optional mask image for inpainting (transparent areas indicate regions to edit):type(String.t): Type of edit operation:n(integer()): Number of images to generate:size(String.t): Size of the output image:response_format(String.t): Format of the response:stream(boolean()): When true, stream the response via Server-Sent Events:background(String.t): Background type for the image:input_fidelity(String.t): How closely to follow the original image:partial_images(integer()): Number of partial images to generate when streaming:quality(String.t): Quality of the output image:output_format(String.t): Output image format:num_inference_steps(integer()): Number of inference steps:seed(integer()): Seed for reproducible editing:output_compression(integer()): Compression level (0-100%):negative_prompt(String.t): What to avoid in the edit:user(String.t): User identifier for tracking:fallbacks([ExBifrost.Model.Fallback.t]): Fallback models to try if primary model fails
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_image_generation( Tesla.Env.client(), ExBifrost.Model.ImageGenerationRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async image generation Submits an image generation request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to serverimage_generation_request(ImageGenerationRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_image_variation( Tesla.Env.client(), String.t(), String.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async image variation Submits an image variation request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Parameters
connection(ExBifrost.Connection): Connection to servermodel(String.t): Model identifier in formatprovider/modelimage(String.t): Image file to create variations of. Use field nameimagefor a single file orimage[]for multiple (first image is used).opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.:n(integer()): Number of variations to generate:size(String.t): Size of the output images:response_format(String.t): Format of the response:user(String.t): User identifier for tracking:fallbacks([ExBifrost.Model.Fallback.t]): Fallback models to try if primary model fails
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_ocr(Tesla.Env.client(), ExBifrost.Model.OcrRequest.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async OCR job Submits an OCR request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Parameters
connection(ExBifrost.Connection): Connection to serverocr_request(OcrRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_rerank( Tesla.Env.client(), ExBifrost.Model.RerankRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async rerank Submits a rerank request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result.
Parameters
connection(ExBifrost.Connection): Connection to serverrerank_request(RerankRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_response( Tesla.Env.client(), ExBifrost.Model.ResponsesRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async response Submits a response request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to serverresponses_request(ResponsesRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_speech( Tesla.Env.client(), ExBifrost.Model.SpeechRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async speech Submits a speech synthesis request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. SSE streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to serverspeech_request(SpeechRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_text_completion( Tesla.Env.client(), ExBifrost.Model.TextCompletionRequest.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async text completion Submits a text completion request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to servertext_completion_request(TextCompletionRequest):opts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec create_async_transcription( Tesla.Env.client(), String.t(), String.t(), keyword() ) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Create async transcription Submits a transcription request for asynchronous execution. Returns a job ID immediately with HTTP 202. Poll the corresponding GET endpoint with the job ID to retrieve the result. Streaming is not supported for async requests.
Parameters
connection(ExBifrost.Connection): Connection to servermodel(String.t): Model in provider/model formatfile(String.t): Audio file to transcribeopts(keyword): Optional parameters:"x-bf-async-job-result-ttl"(integer()): Time-to-live in seconds for the job result after completion. Defaults to 3600 (1 hour). After expiry, the job result is automatically cleaned up.:"x-bf-async-webhook"(String.t): Name of a registered webhook endpoint to notify when this job reaches a terminal state (completedorfailed). The endpoint must already exist and be enabled, and must be subscribed to the resulting event; otherwise the submission is rejected with HTTP 400. When omitted, no webhook is sent for the job and results are retrieved by polling. See the Webhooks management API to register endpoints.:fallbacks([String.t])::stream(boolean())::language(String.t)::prompt(String.t)::response_format(String.t)::file_format(String.t):
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_chat_completion_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async chat completion job Retrieves the status and result of an async chat completion job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_embedding_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async embedding job Retrieves the status and result of an async embedding job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_image_edit_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async image edit job Retrieves the status and result of an async image edit job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_image_generation_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async image generation job Retrieves the status and result of an async image generation job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_image_variation_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async image variation job Retrieves the status and result of an async image variation job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_ocr_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async OCR job Retrieves the status and result of an async OCR job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_rerank_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async rerank job Retrieves the status and result of an async rerank job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_response_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async response job Retrieves the status and result of an async response job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_speech_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async speech job Retrieves the status and result of an async speech job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_text_completion_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async text completion job Retrieves the status and result of an async text completion job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure
@spec get_async_transcription_job(Tesla.Env.client(), String.t(), keyword()) :: {:ok, ExBifrost.Model.AsyncJobResponse.t()} | {:ok, ExBifrost.Model.BifrostError.t()} | {:error, Tesla.Env.t()}
Get async transcription job Retrieves the status and result of an async transcription job. Returns HTTP 202 if the job is still pending or processing, HTTP 200 if completed or failed.
Parameters
connection(ExBifrost.Connection): Connection to serverjob_id(String.t): The unique identifier of the async jobopts(keyword): Optional parameters
Returns
{:ok, ExBifrost.Model.AsyncJobResponse.t}on success{:error, Tesla.Env.t}on failure