{"openapi":"3.1.0","info":{"title":"makemeshes","version":"1.0.0","summary":"Generate sprites, tiling textures and 3D meshes for game projects on a self-hosted GPU.","description":"Invite only private beta. Authenticate with a personal API key as a bearer token. Credits are held on submission and refunded when a render fails. Downloads are signed URLs into a private bucket and expire after one hour.","license":{"name":"Outputs carry commercial rights","url":"https://makemeshes.com/licence"}},"servers":[{"url":"https://makemeshes.com"}],"security":[{"bearerKey":[]}],"tags":[{"name":"account"},{"name":"jobs"},{"name":"assets"},{"name":"mcp"}],"paths":{"/api/v1/me":{"get":{"tags":["account"],"operationId":"getAccount","summary":"Describe the account behind the key","responses":{"200":{"description":"The account and the key in use","content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"display_name":{"type":"string"},"plan":{"type":"string"},"credits":{"type":"integer"},"invites_remaining":{"type":"integer"}}},"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"prefix":{"type":"string"}}}}}}}},"401":{"description":"Missing or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/v1/jobs":{"post":{"tags":["jobs"],"operationId":"createJob","summary":"Queue a generation job","description":"Holds credits at submission. Sprite and texture cost 1 credit, mesh costs 3. Returns 402 when the balance is short and 429 when the daily or concurrent limit is hit.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"type":{"type":"string","enum":["sprite","texture","mesh"]},"prompt":{"type":"string","minLength":3,"maxLength":600}},"required":["type","prompt"],"additionalProperties":false},"examples":{"texture":{"value":{"type":"texture","prompt":"rusted ship hull plate, 2 metre tile"}}}}}},"responses":{"201":{"description":"Job queued","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["sprite","texture","mesh"]},"status":{"type":"string","enum":["queued","running","complete","failed","cancelled"]},"progress":{"type":"integer","minimum":0,"maximum":100},"prompt":{"type":"string"},"credits_cost":{"type":"integer"},"error":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"download_url":{"type":"string","nullable":true},"preview_url":{"type":"string","nullable":true}},"required":["id","type","status","progress","prompt","credits_cost"]},"credits_left":{"type":"integer"},"next":{"type":"string"}}}}}},"400":{"description":"Bad type or prompt","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Missing or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"402":{"description":"Not enough credits","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"Quota reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}}},"get":{"tags":["jobs"],"operationId":"listJobs","summary":"List your jobs, newest first","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}],"responses":{"200":{"description":"Jobs on this account","content":{"application/json":{"schema":{"type":"object","properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["sprite","texture","mesh"]},"status":{"type":"string","enum":["queued","running","complete","failed","cancelled"]},"progress":{"type":"integer","minimum":0,"maximum":100},"prompt":{"type":"string"},"credits_cost":{"type":"integer"},"error":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"download_url":{"type":"string","nullable":true},"preview_url":{"type":"string","nullable":true}},"required":["id","type","status","progress","prompt","credits_cost"]}}}}}}}}}},"/api/v1/jobs/{id}":{"get":{"tags":["jobs"],"operationId":"getJob","summary":"Get one job with status and progress","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The job","content":{"application/json":{"schema":{"type":"object","properties":{"job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["sprite","texture","mesh"]},"status":{"type":"string","enum":["queued","running","complete","failed","cancelled"]},"progress":{"type":"integer","minimum":0,"maximum":100},"prompt":{"type":"string"},"credits_cost":{"type":"integer"},"error":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"download_url":{"type":"string","nullable":true},"preview_url":{"type":"string","nullable":true}},"required":["id","type","status","progress","prompt","credits_cost"]}}}}}},"404":{"description":"No such job on this account","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}}}},"/api/v1/assets":{"get":{"tags":["assets"],"operationId":"listAssets","summary":"List completed assets with signed download URLs","parameters":[{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":40}}],"responses":{"200":{"description":"Assets on this account","content":{"application/json":{"schema":{"type":"object","properties":{"assets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"job_id":{"type":"string","nullable":true},"kind":{"type":"string"},"filename":{"type":"string"},"content_type":{"type":"string"},"bytes":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"download_url":{"type":"string"}},"required":["id","filename","content_type","bytes","download_url"]}}}}}}}}}},"/mcp":{"post":{"tags":["mcp"],"operationId":"mcpJsonRpc","summary":"Model Context Protocol endpoint","description":"Streamable HTTP, stateless, JSON responses. Supports initialize, tools/list and tools/call for generate_asset, get_job and list_assets. Authenticate with the same bearer key.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","const":"2.0"},"id":{"type":["string","number","null"]},"method":{"type":"string"},"params":{"type":"object"}},"required":["jsonrpc","method"]}}}},"responses":{"200":{"description":"JSON-RPC response"},"202":{"description":"Notification accepted, no body"},"401":{"description":"Missing or revoked key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}}}}},"components":{"securitySchemes":{"bearerKey":{"type":"http","scheme":"bearer","bearerFormat":"mm_live_*","description":"A personal API key created at /account/keys."}},"schemas":{"Job":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string","enum":["sprite","texture","mesh"]},"status":{"type":"string","enum":["queued","running","complete","failed","cancelled"]},"progress":{"type":"integer","minimum":0,"maximum":100},"prompt":{"type":"string"},"credits_cost":{"type":"integer"},"error":{"type":"string","nullable":true},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time","nullable":true},"finished_at":{"type":"string","format":"date-time","nullable":true},"download_url":{"type":"string","nullable":true},"preview_url":{"type":"string","nullable":true}},"required":["id","type","status","progress","prompt","credits_cost"]},"Asset":{"type":"object","properties":{"id":{"type":"string"},"job_id":{"type":"string","nullable":true},"kind":{"type":"string"},"filename":{"type":"string"},"content_type":{"type":"string"},"bytes":{"type":"integer"},"created_at":{"type":"string","format":"date-time"},"download_url":{"type":"string"}},"required":["id","filename","content_type","bytes","download_url"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}