Skip to Content

Connect Leonardo.Ai to Your AI Agent

Describe the image and choose a model with compatible settings before submitting a generation request.

4 toolsAPI key

20,000 free app calls every month(paid services billed separately)

Try a Leonardo.Ai Task

Copy a prompt into your agent with the oo Skill installed. Add your page links and source notes before running it.

oo SkillLeonardo.Ai

Generate an Image from a Description

Choose a suitable image model, submit its parameters, and retrieve image links when ready.

/oo Leonardo.Ai: List Leonardo.Ai models and choose an image model suitable for [image description]. Use its parameter definitions to request [image size and count], keep the assets private, then check the job and provide image URLs when completed.

Remove or Replace an Image Background

Create a transparent product cutout or composite it onto a new background.

/oo Leonardo.Ai: Remove the background from [HTTPS image URL] with Leonardo.Ai, return a transparent PNG, and keep it private without saving it to the library. Give me the result URL and its expiry.

Start Working with Leonardo.Ai

  1. Install OOMOL

    Set up oo CLI and the oo Skill in your agent.

    Install OOMOL →
  2. Connect Leonardo.Ai

    Connect your Leonardo.Ai production API key.

    Connect Leonardo.Ai→
  3. Give Your Agent a Task

    Use /oo with the pages to read, the changes to make, and where to save the result.

    Connection Guide →
  • A key from the official API Access page and account access to the chosen model.
  • Generation jobs are asynchronous; background removal returns its result synchronously. Both can consume API credits.
  • Background removal defaults to private, ephemeral results. Download result URLs within 30 minutes, or explicitly save results to your Leonardo library.

Leonardo.Ai Tools

The connection lists production models and their parameter definitions, submits model-specific generation jobs, and reads job status with normalized image results. Background removal returns image URLs or Base64 synchronously, with optional replacement backgrounds.

Models and Generation Requests

Inspect model-specific settings and submit a generation job with a chosen visibility setting.

Job Status and Image Links

Read a generation’s status and image URLs when supplied.

Background Removal

Remove backgrounds, crop subjects, add shadows, or supply a replacement background.

4 tools

Remove Background

Remove an image background synchronously with Leonardo.Ai. Returns image URLs or Base64 without polling; moderated outputs may be empty. Requires a Leonardo API key.

leonardo_ai.remove_background

List Models

List Leonardo.Ai production API models and their model-specific parameter schemas.

leonardo_ai.list_models

Create Generation

Create a Leonardo.Ai image, video, audio, or 3D generation job using JSON model parameters.

leonardo_ai.create_generation

Get Generation

Retrieve a Leonardo.Ai generation job status and normalized generated image URLs.

leonardo_ai.get_generation

Frequently Asked Questions

Do all models accept the same settings?

No. Use the model list and the chosen model’s parameter definitions rather than reusing settings blindly across models.

What if the job has no images yet?

Check its status. It may still be pending or processing; read the same generation ID again rather than submitting another job solely because images are absent.

Can I assume video or audio jobs have the same result handling?

The submission accepts model-specific generation parameters, but the result action currently normalizes image URLs. Confirm the model and output path before requesting another media type.

How long are background removal results available?

By default, results are not saved to the library and URLs expire after 30 minutes. Set ephemeral to false to keep results, or request Base64 output. Moderation may return an empty result list.