---
title: "Use Muse Code with Image generation — tool setup and examples — AgentSky"
description: "Use Muse Code with the Image generation tool on AgentSky. Preselect the capability, run a bounded task, and verify the returned result and usage."
url: https://agentsky.dev/agents/muse-code/tools/image-generation
---

# Muse Code + Image generation

Muse Code runs the work loop and Image generation performs the selected operation. The Composer below preselects Muse Code, Muse Spark 1.2, and this tool so you can test one real task with the same billing and recovery path as any AgentSky run.

[Repo](https://agentsky.dev/auth/start?returnTo=%2Fagents%2Fmuse-code%2Ftools%2Fimage-generation%3Fresume%3D1)

How the combination works

## Muse Code decides when to call Image generation.

Runs the task through its ACP harness in a persistent cloud workspace while the selected AgentSky model supplies reasoning and generation.

AgentSky uses OpenAI gpt-image-2 to generate one image at high quality. Specify the subject, composition and exact wording, then choose a square, portrait or landscape size.

- Muse Code Owns the task loop, context, model calls, tool choice, cloud computer, progress and final result.
- Image generation Performs the operation exposed by the current Image generation capability. Its input limits and output shape come from the live tool guide and adapter.
- AgentSky Keeps the selected agent, model, capability grant, task state and usage record together. Tool charges and model or runtime charges remain itemized separately.

Setup and first task

## Start with one bounded image generation task.

The Composer carries Muse Code, Muse Spark 1.2, and Image generation. Begin with the smallest input that lets you inspect the output before expanding the workflow.

01

### Open the Muse Code Composer

The Composer above preselects Muse Code, Muse Spark 1.2, and Image generation. Add the target, required inputs and a concrete expected result; the draft stays in place through sign-in.

02

### State the Image generation boundary

Create a quiet editorial illustration about human–AI collaboration. Use a light background, a clear focal point, and no text.

03

### Run and verify the returned result

Check the output against the source or brief, confirm that the result has the expected format, and inspect the task usage for model, runtime and tool charges.

Inputs, cost and limits

## What Muse Code + Image generation establishes

Tasks supported by this ACP harness through AgentSky's verified platform-model path.

Configure and verify

- Muse Code and Muse Spark 1.2 are preselected for the browser evaluation.
- Image generation is enabled from the current capability catalog with its live input and output guidance.
- The first task can be checked from the returned artifact, text or provider result before a larger workflow is attempted.

Still depends on the task

- A tool guide does not guarantee a provider result for malformed, blocked or unsupported Image generation inputs.
- A successful tool call does not establish that the result is correct for your business decision; inspect the output at its source boundary.
- Total task cost can include model tokens, active computer time and the selected tool's billable units.

Current Image generation rates

### gptimage.generate

$0.422 per asset.

Tool-specific details

## Use the current Image generation contract.

AgentSky uses OpenAI gpt-image-2 to generate one image at high quality. Specify the subject, composition and exact wording, then choose a square, portrait or landscape size.

- Actual model OpenAI gpt-image-2; high quality, one image per request, non-streaming.
- Available sizes 1024×1024 square (default), 1024×1536 portrait, or 1536×1024 landscape.
- Input and output Provide a text prompt and size to receive a downloadable image. This tool creates new images; it does not accept an existing image or mask for editing.

## Muse Code + Image generation questions

## Related resources

[Muse CodeReview Muse Code's supported models, tools, channels and connectors.](https://agentsky.dev/agents/muse-code) [Image generation toolReview the current operation inputs, outputs, examples and rates.](https://agentsky.dev/features/tools/image-generation) [Muse Code + Muse Spark 1.2Review the current default agent and model combination.](https://agentsky.dev/agents/muse-code/with/muse-spark-1.2) [PricingReview model, active-computer and tool charges.](https://agentsky.dev/pricing)

## Give Muse Code a image generation task.

[Open the Composer](https://agentsky.dev/agents/muse-code/tools/image-generation#composer)

## Frequently asked questions

### Can Muse Code use Image generation on AgentSky?

Yes. This page is generated from the current AgentSky tool catalog and preselects Image generation for Muse Code. The exact operation still depends on the tool's current adapter, required inputs and provider availability.

### What does Muse Code do with Image generation?

Muse Code interprets the task, decides whether the permitted Image generation operation is useful, supplies its inputs, and returns the result in the running task. The tool performs the operation; it does not replace the agent's reasoning or verification.

### What should my first Muse Code + Image generation task be?

Start with one small, read-only or reversible request. Create a quiet editorial illustration about human–AI collaboration. Use a light background, a clear focal point, and no text. Then compare the returned result with the source or brief before adding more inputs or allowing follow-up actions.

### How do I verify a Image generation result?

Inspect the returned artifact or response at its source boundary. Check the expected format, important fields, fidelity to the brief and any provider error or partial-result signal; a completed tool call alone does not prove correctness.

### How much does Muse Code + Image generation cost?

There is no fixed task price. AgentSky records the selected tool's billable units together with model token usage and active cloud-computer time. Review the current Image generation guide for the operation rate; provider charges or quotas can remain separate.

### What happens if I am signed out or my balance is empty?

The shared Composer preserves the task, Muse Code, Muse Spark 1.2, and Image generation through sign-in. Before dispatch, AgentSky checks the account and balance; if funding is required, it shows the billing path and keeps the draft instead of silently changing the selections.

### Can I use Image generation without Muse Code?

You can call the underlying tool API directly when you need an operation without a cloud agent. This page is for the combined workflow, where Muse Code supplies the task loop and Image generation is available as a selected capability in the Composer.

### Can I combine Image generation with a connector?

Yes, when the task needs both a tool operation and authorized application data. Enable the connector separately, state the resource and permission boundary, and verify each result at its own source; tool access does not grant connector access.

---

Markdown copy of https://agentsky.dev/agents/muse-code/tools/image-generation. Every agentsky.dev page has one: add `.md` to its address or send `Accept: text/markdown`. Start from https://agentsky.dev/llms.txt.
