pydo.inference.create_async_invoke()

Generated on 7 May 2026 from pydo version v0.34.0

Description

Generate Image, Audio, or Text-to-Speech Using fal Models. This endpoint starts an asynchronous job and returns a request_id. The job status is QUEUED initially. Use the request_id to poll for the result.

Request Sample

import os
from pydo import Client

client = Client(token=os.environ.get("MODEL_ACCESS_KEY"))

# Image Generation
resp = client.async_images.generate(
    model_id="fal-ai/flux/schnell",
    prompt="A futuristic city at sunset",
)
print(resp.request_id, resp.status)

# Audio Generation
resp = client.audio.generate(
    model_id="fal-ai/stable-audio-25/text-to-audio",
    prompt="Techno song with futuristic sounds",
    seconds_total=60,
)
print(resp.request_id, resp.status)

# Text-to-Speech
resp = client.audio.speech.create(
    input="This text-to-speech example uses DigitalOcean multilingual voice.",
    model_id="fal-ai/elevenlabs/tts/multilingual-v2",
)
print(resp.request_id, resp.status)

More Information

See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.