You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/reference/tools/asset_gen/generate_image.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ description: "Generate 2D images with AI providers (fal.ai, OpenRouter) and impo
15
15
Generate 2D images with AI providers (fal.ai, OpenRouter) and import them as textures/sprites into the Unity project. Bring-your-own-key: provider keys live in the editor's secure store and never cross the bridge.
16
16
17
17
ACTIONS:
18
-
- generate: Submit an image job (text->image or image->image). Returns { job_id } (sync providers resolve immediately); poll with the status action. Params: provider, mode (text|image), prompt, image_path|image_url, model, transparent, width, height, name, output_folder.
19
-
- remove_background: Remove the background of image_path -> { job_id }.
18
+
- generate: Submit an image job (text->image or image->image). Returns { job_id }; poll with the status action. Params: provider, mode (text|image), prompt, image_path|image_url, model, transparent, width, height, name, output_folder.
19
+
- remove_background: Unsupported in this version; returns an error instead of a job_id.
20
20
- status: Poll an async job by job_id -> { state, progress, assetPath?, error? }.
21
21
- cancel: Cancel an in-flight job by job_id.
22
22
- list_providers: List configured image providers and capabilities (no key values).
@@ -29,7 +29,7 @@ ACTIONS:
29
29
|`provider`|`str \| None`| — | Provider id (fal, openrouter). |
30
30
|`mode`|`str \| None`| — | Generation mode: text or image. |
31
31
|`prompt`|`str \| None`| — | Text prompt for text->image. |
32
-
|`image_path`|`str \| None`| — | Path to a source image for image->image / remove_background. |
32
+
|`image_path`|`str \| None`| — | Path to a source image for image->image mode. |
33
33
|`image_url`|`str \| None`| — | URL of a source image for image->image. |
|`transparent`|`bool \| None`| — | Mark the imported texture as alpha-is-transparency. NOTE: fal/FLUX and OpenRouter have no generation-time transparency, so this only sets the Unity import flag — it does not make the model render a transparent background. |
0 commit comments