Forge GUI API / Documentation

API Documentation Index | ForgeGUI API

Follow ForgeGUI API docs through authentication, task submission, status checks, and downloads. Use Forge GUI API docs examples to implement each stage.

Forge GUI API docs use existing credits; website and API tasks share member allowances. Check Forge GUI AI API docs for current costs.

For an AI-assistant workflow, use ForgeGUI MCP.

ForgeGUI API docs quick start

Run Forge GUI AI API docs examples server-side. Follow these three Forge GUI Roblox API docs stages to submit and retrieve an asset.

1

Issue a key

2

Start generation

3

Check and retrieve

1. Prepare a workspace key

OpenDashboard → API Keys, select the workspace, and name the key. Save its one-time display securely.

Request header
Authorization: Bearer YOUR_API_KEY

2. Submit the asset request

ForgeGUI API docs create one task per request. HTTP 202 confirms acceptance, not completion; track the returned task as described in Forge GUI Roblox API docs.

FieldTypeDescription
typestringRequired: select a documented type from the nine identifiers.
promptstringRequired: specify the intended result.
parametersobjectOptional settings for that type; unknown fields fail validation.
reference_image_idsstring[]Optional references in Forge GUI Roblox API docs: no more than 16 image upload IDs.
source_asset_idstringOptional edit source: accessible image:<id> matching the type. Excludes clothing.
max_creditsintegerOptional nonnegative ceiling: reject generation costing more than this amount.
POST /api/v1/generations
curl -X POST 'https://forgegui.dev/api/v1/generations' \
  -H "Authorization: Bearer $FORGEGUI_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: castle-001' \
  -d '{"type":"thumbnail","prompt":"A floating castle at sunset"}'
Abbreviated HTTP 202 response
{"id":"gen_example","type":"thumbnail","status":"queued","outputs":[]}

3. Check completion and collect files

Poll every 3–5 seconds until terminal status. ForgeGUI API docs use polling without callbacks or webhooks; the Forge GUI API docs examples follow that sequence.

GET /api/v1/generations/{id}
curl 'https://forgegui.dev/api/v1/generations/gen_example' \
  -H "Authorization: Bearer $FORGEGUI_API_KEY"
Illustrative completed task and credit cost
{
  "id": "gen_example",
  "type": "thumbnail",
  "status": "succeeded",
  "prompt": "A floating castle at sunset",
  "parameters": {
    "platform": "roblox",
    "style": "auto"
  },
  "created_at": "2026-10-30T00:00:00.000Z",
  "credits": {
    "estimated": 10,
    "reserved": 0,
    "charged": 10,
    "refunded": 0,
    "refund_pending": 0,
    "settlement_status": "settled"
  },
  "outputs": [
    {
      "id": "f_example",
      "role": "image",
      "status": "succeeded",
      "asset_id": "image:example",
      "availability": "available",
      "file": {
        "id": "f_example",
        "filename": "example.png",
        "content_type": "image/png",
        "bytes": 245760,
        "download_url": "/api/v1/files/f_example",
        "expires_at": null
      },
      "error": null,
      "duration_seconds": null,
      "url": "/api/v1/files/f_example"
    }
  ],
  "retry_of": null,
  "error": null
}

Resolve the Forge GUI API docs output URL relative to https://forgegui.dev and authenticate with the same workspace key. Forge GUI API docs use your task's actual file ID; Forge GUI AI API docs examples contain illustrative identifiers.

Retrieve files with ForgeGUI API docs
curl "https://forgegui.dev/api/v1/files/RETURNED_FILE_ID" \
  -H "Authorization: Bearer $FORGEGUI_API_KEY" \
  --output castle.png

ForgeGUI API docs authentication

Authenticate data requests with a Bearer key tied to its creator and selected workspace. ForgeGUI API docs allow five active keys per member across workspaces. Switching the website workspace does not rebind a key; Forge GUI Roblox API docs requests retain their original destination.

Save the full key at creation in a server environment variable. ForgeGUI API docs exclude browser bundles, public repositories, and logs as storage locations. Dashboard shows masked prefixes, creation and usage dates. Revoke access when necessary; team owners may revoke their members' team keys. Forge GUI AI API docs keep that credential handling server-side.

Keys cannot manage website sessions, billing, or internal functions. Under ForgeGUI API docs, revocation stops future calls; Forge GUI API docs tasks already accepted continue settling credits.

ForgeGUI API docs credits and teams

Eligible paid personal and team workspaces can generate. Team members need no separate personal plan. ForgeGUI API docs use the shared balance and owner-assigned allowance without another API bill. Forge GUI API docs account checks confirm that eligibility before new work starts.

Inspect workspace access with ForgeGUI API docs
curl https://forgegui.dev/api/v1/account \
  -H "Authorization: Bearer $FORGEGUI_API_KEY"

Read workspace, generation_eligible, credits.available, and member allowances from the account response. ForgeGUI API docs block new requests after allowance exhaustion or paid-access expiry; removed members lose team access. Previously accessible tasks and assets remain readable after eligibility expires, as described in Forge GUI Roblox API docs.

Read GET /api/v1/capabilities for availability, costs, schemas, and limits. ForgeGUI API docs repeat credit checks at execution and reserve against the shared ledger atomically. Clothing reserves both pieces together; existing refund rules cover failures. Forge GUI AI API docs expose those current capabilities.

ForgeGUI API docs generation types

Select the type explicitly. ForgeGUI API docs create one generation unit, regardless of requests for extra alternatives in the prompt. Internal preparation instructions and system prompts remain private in Forge GUI Roblox API docs responses.

Image prompts allow 60,000 Unicode characters within a 256 KiB body. Forge GUI API docs cover references and edits; Forge GUI AI API docs validate parameters and apply defaults when omitted.

Thumbnail thumbnail

platform: roblox (default), minecraft, fortnite or unity. style: auto (default), default, horror, cartoony, anime or survival.

Result:Thumbnail output in ForgeGUI API docs: one generated PNG.

POST /api/v1/generations · thumbnail
{
  "type": "thumbnail",
  "prompt": "A floating castle at sunset",
  "parameters": {
    "style": "auto"
  }
}

GUI gui

platform: roblox (default), minecraft, fortnite or unity.

Result:GUI output in ForgeGUI API docs: one PNG concept; implement scripts and interactions separately.

POST /api/v1/generations · gui
{
  "type": "gui",
  "prompt": "A fantasy inventory with six item slots",
  "parameters": {}
}

Avatar avatar

platform: roblox (default).

Result:Avatar output in ForgeGUI API docs: PNG concept artwork, without a rig or marketplace publishing.

POST /api/v1/generations · avatar
{
  "type": "avatar",
  "prompt": "A friendly explorer in a blue jacket",
  "parameters": {}
}

Icon icon

platform: roblox (default), minecraft, fortnite or unity.

Result:Icon output in ForgeGUI API docs: one square PNG.

POST /api/v1/generations · icon
{
  "type": "icon",
  "prompt": "A blue crystal sword on a dark background",
  "parameters": {}
}

Clothing clothing

platform: roblox (default). References supported; editing an existing output is not supported.

Result:Clothing output in ForgeGUI API docs: shirt and pants PNGs, each 585 × 559. After partial success, retry only the failed piece.

POST /api/v1/generations · clothing
{
  "type": "clothing",
  "prompt": "A coordinated blue explorer shirt and matching pants",
  "parameters": {}
}

3D model_3d

platform: roblox (default). Text input only.

Result:3D output in ForgeGUI API docs: a GLB and an optional preview image.

POST /api/v1/generations · model_3d
{
  "type": "model_3d",
  "prompt": "A wooden treasure chest with gold trim",
  "parameters": {}
}

Music music

No parameters. Prompt: up to 3,000 Unicode characters.

Result:Music output in ForgeGUI API docs: two MP3 tracks per generation.

POST /api/v1/generations · music
{
  "type": "music",
  "prompt": "Gentle orchestral exploration music for a fantasy island",
  "parameters": {}
}

SFX sfx

category: general (default), ui, movement, collectible, combat or ambient. duration_seconds: 0.5–22 (default 2). loop: true or false (default false). Prompt: up to 450 Unicode characters.

Result:SFX output in ForgeGUI API docs: one audio file; check content_type.

POST /api/v1/generations · sfx
{
  "type": "sfx",
  "prompt": "A bright magical coin pickup chime",
  "parameters": {
    "category": "collectible",
    "duration_seconds": 2,
    "loop": false
  }
}

Animation animation

duration_seconds: integer 1–12 (default 5). rig: r15 (default). Prompt: up to 10,000 UTF-16 units. Text input only.

Result:Animation output in ForgeGUI API docs: one R15 RBXMX file. Inspect before importing.

POST /api/v1/generations · animation
{
  "type": "animation",
  "prompt": "Wave the right hand twice while standing still",
  "parameters": {
    "duration_seconds": 5,
    "rig": "r15"
  }
}

ForgeGUI API docs task states

StatusInterpretation
queuedQueued after acceptance; work has not started.
processingGeneration or output storage is running.
succeededCompleted successfully; collect the available files.
partially_succeededOne clothing output succeeded. Retain it and retry the failed piece after settlement.
failedFailed generation; inspect settlement before another attempt.

The credits object contains estimated, reserved, charged, refunded, and refund_pending. ForgeGUI API docs use refunded for workspace credits, not payment refunds. Terminal tasks can still need refund repair. Wait until reserved and refund_pending are zero before retrying, following the settlement checks in Forge GUI AI API docs.

Outputs expose role, status, asset_id, availability, and file. ForgeGUI API docs file records include content_type, bytes, filename, expires_at, and authenticated download_url, plus dimensions or duration when available. Deleted or expired outputs stay completed with file: null; failures expose a safe error. Forge GUI Roblox API docs tasks remain private to their creating member and fixed workspace.

Browse ForgeGUI API docs task records
GET /api/v1/generations?limit=20
GET /api/v1/generations?limit=20&cursor=NEXT_CURSOR

Lists return items and next_cursor; reuse the cursor unchanged until null. Forge GUI API docs cap pages at 100. Forge GUI Roblox API docs filter tasks by type/status and assets by type/source: api or web.

ForgeGUI API docs file transfer

Before an image request, upload its reference using multipart/form-data and a file field. ForgeGUI API docs apply website image validation, a 10 MiB file maximum, and an 11 MiB multipart-body limit. Forge GUI AI API docs use the validated upload for subsequent requests.

Upload using ForgeGUI API docs
curl https://forgegui.dev/api/v1/uploads \
  -H "Authorization: Bearer $FORGEGUI_API_KEY" \
  -F "file=@reference.png"

Read upload_id, content_type, and bytes; pass upload_id in reference_image_ids. ForgeGUI API docs keep uploads in the key's workspace. Remove unused files with DELETE /api/v1/uploads/{id}. Forge GUI AI API docs prevent deleting uploads used by active generations.

Use GET /api/v1/files/{id} for bytes, or HEAD for size and MIME details. ForgeGUI API docs support single byte ranges for resumed transfers. No permanent public URLs or provider redirects are supplied. Save files before deletion or access expiry; Forge GUI Roblox API docs downloads require authorization.

ForgeGUI API docs asset access

GET /api/v1/assets lists permitted website and API assets in the fixed workspace. ForgeGUI API docs retrieve one record through GET /api/v1/assets/{asset_id} . Encode prefixed identifiers such as image:job_id in URLs. Forge GUI API docs preserve type prefixes; use the returned ID with Forge GUI Roblox API docs asset endpoints.

ForgeGUI API docs apply website ownership and team-sharing rules to assets and downloads. source: api identifies generated API work, and the website's API call badge labels results and spending. Forge GUI AI API docs responses omit internal prompts, provider task IDs, and provider responses.

ForgeGUI API docs replay and retry

POST /generations and POST /generations/{id}/retry require Idempotency-Key: 1–128 letters, digits, underscores, periods, colons, or hyphens. ForgeGUI API docs use a new key per intended generation. After a timeout, repeat the same body and key. Its scope is the member/workspace across their keys, as specified in Forge GUI Roblox API docs.

Identical replay returns the original task with HTTP 200; changed input with the same key returns 409 IDEMPOTENCY_CONFLICT. ForgeGUI API docs charge normal credits for new variations. Forge GUI API docs treat those as new requests.

Follow ForgeGUI API docs for failed-task retries
curl -X POST https://forgegui.dev/api/v1/generations/gen_example/retry \
  -H "Authorization: Bearer $FORGEGUI_API_KEY" \
  -H "Idempotency-Key: castle-retry-001" \
  -H "Content-Type: application/json" \
  -d '{"max_credits":20}'

ForgeGUI API docs permit one linked successor per task, charging only retried work. If it fails, retry that successor. Partial clothing retries only the unsuccessful piece, reusing stored preparation where available. Forge GUI AI API docs require failed reservations to be refunded before retry becomes available.

ForgeGUI API docs failures and limits

Structured error response
{"error":{"code":"INSUFFICIENT_CREDITS","message":"Your workspace has insufficient credits.","retryable":false},"request_id":"request-id"}
HTTPTypical codeNext check
401INVALID_API_KEYVerify the Bearer header and revocation status.
403PAID_ACCESS_REQUIRED / WORKSPACE_UNAVAILABLE / TEAM_MEMBER_LIMIT_EXCEEDEDVerify paid access, membership, and the owner's assigned allowance.
402INSUFFICIENT_CREDITS / CREDIT_LIMIT_EXCEEDEDInspect max_credits and the shared available balance.
404RESOURCE_NOT_FOUNDVerify workspace and ID; resources without access also return 404.
409IDEMPOTENCY_CONFLICT / CONCURRENCY_LIMIT / TASK_NOT_RETRYABLEResolve the conflicting request or await tasks and refunds.
413 / 422PAYLOAD_TOO_LARGE / INVALID_PARAMETERMatch documented parameters and permitted body size.
429RATE_LIMITEDHonor Retry-After before issuing another request.
503GENERATION_UNAVAILABLEWait, then repeat using the original idempotency key.
500INTERNAL_ERRORRetain the request ID; retry later using the same key.

Across a member's keys, ForgeGUI API docs allow 10 writes and 120 reads per minute, plus two active API tasks. GET/HEAD are reads; existing generation and team concurrency limits still apply. Limited requests return Retry-After: 60. Forge GUI Roblox API docs clients should back off instead of polling concurrently.

OpenAPI

Download the machine-readable contract for tooling and endpoint discovery. Combine ForgeGUI API docs with current capabilities and Forge GUI AI API docs examples when implementing the public API.

Download the OpenAPI contract

SUPPORT

Integration questions

Forge GUI AI API docs: practical setup answers.

Forge GUI API docs share website credits and team allowances; Forge GUI Roblox API docs use the same workspace balance.