Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Submit a 3D job

Generates one 3D model as a glb file from text, one image or several views. Texture, PBR maps, face count and topology follow parameters within the model contract; the result file reports the measured face count.

POST/v1/3d/generations
Authorization
AuthorizationBearer token (YIR_API_KEY) · headerrequired
Header parameters
Idempotency-Keystringrequired

Required. Missing or blank keys are rejected with a non-retryable 400 before any resource is created or anything is charged. Replaying the same key with an identical standardized request returns the original result; reusing a key with a changed request is rejected. Generation SDK methods accept an omitted key and generate a random key per call; they do not automatically retry Submit. Persist one key per logical request before submitting and reuse it with the original request when the outcome is unknown. Separate SDK calls without an explicit key can create separate billable Jobs. Server-side fallback within an accepted Job is independent of this header.

min length 1 · max length 200
Yir-Referralstring

Optional referral code of the partner who deployed the app sending this request, for example a self-hosted open-source studio. Jobs created with a code Yir has enabled for partner attribution count toward that partner's referral rebate instead of the account's sign-up referrer; it does not change the price, routing or idempotency of the Job. Unknown, ineligible or suspended codes, and a partner's own API key, are ignored and never fail the request.

min length 1 · max length 20
Request body
requiredapplication/json
billing_modeActualBillingModedeprecated

Legacy compatibility field. Omit for new requests. When retrying an existing idempotency key, preserve its original request including this field. Explicit consent to the authoritative actual cost of every upstream-billed attempt of the Job, without a max_cost cap. Eligible channels must provide authoritative task-level charges. Automatic routing is supported; routing.only is optional and, when supplied, remains binding. Cannot be combined with max_cost. Insufficient wallet funds become Job debt repaid by future manual recharge; outstanding debt blocks new Jobs. Every attempt the upstream actually billed is charged to the user, including failed and non-winning ones; attempts the upstream did not bill, and Yir's own delivery failures or outcome timeouts, are not charged. Omit for the default contract: balance is not frozen, each attempt checks the live balance against its route estimate, each upstream-billed attempt is charged at the authoritative upstream amount after the managed discount, and an explicit max_cost caps the Job's total charge.

max_costMaxCost

Optional cap on the Job's total charge in USD, with up to 6 decimal places. Balance is not frozen: admission and every attempt submission check the live available balance against that route's estimate (catalog price for fixed routes, output estimate for usage-based routes). Every attempt the upstream actually billed is charged at the authoritative upstream amount after the managed discount, whether it succeeded, failed, or was followed by a fallback; attempts the upstream never billed cost nothing, and Yir absorbs its own delivery failures and outcome timeouts. A result the upstream billed that Yir rejects as YIR_CONTENT_REJECTED is charged the same way but not delivered. Any part the balance cannot cover becomes a negative balance that blocks new jobs until a top-up. With max_cost, routes whose estimate exceeds it are skipped, and the Job's total charge across all attempts never exceeds it; Yir absorbs any excess. If no route fits, the request is rejected with 422 YIR_BUDGET_EXCEEDED naming the lowest current estimate. Estimates are not locked: channel availability, routing defaults and catalog prices can change them, so a tight cap can start rejecting requests that used to pass. Leave headroom over the quote, and on YIR_BUDGET_EXCEEDED quote again before deciding to raise the cap. Historical jobs retain their recorded billing terms.

max length 20 · matches ^[0-9]{1,13}(\.[0-9]{1,6})?$
modelstringrequired

3D model ID or alias listed by GET /v1/models. An unknown or retired model returns 400 YIR_INVALID_REQUEST with retryable false.

min length 1
inputStandard3DTextInput | Standard3DImageInput | Standard3DMultiviewInputrequired
Show properties
One of:
Standard3DTextInput
typestringrequired
promptstringrequired

Description of the object to model. The per-model limit is in the model contract (1024 for Tripo, 600 for Meshy).

min length 1 · max length 1024 · matches \S
Standard3DImageInput
typestringrequired
referencesany[]required

Exactly one image with role reference_image; a plain background and one object filling most of the frame work best.

min items 1 · max items 1
Show properties
Array of any
rolestringrequired
file_idFileID
matches ^file_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
urlInputURL

Public HTTPS URL of a reference image, video or audio file. Yir downloads it once at submission (up to 100 MiB, 3 redirects, private and reserved addresses refused), detects the type from the file contents, and stores it as an input file so every attempt and fallback reads the same bytes. Data URLs are not accepted. A URL that cannot be imported returns YIR_INVALID_REQUEST naming the reference; retryable is true only for remote timeouts, connection failures, HTTP 429 and 5xx. Quote does not download URLs, so prices that depend on input media are only estimated; upload through the Files API for larger files or exact media-dependent quotes.

max length 2048 · matches ^https://
One of:
any
any
any
any
Standard3DMultiviewInput
typestringrequired
referencesany[]required

One front_view plus at least one of left_view, back_view and right_view, each at most once.

min items 2 · max items 4
Show properties
Array of any
rolestringrequired
Allowed:front_viewleft_viewback_viewright_view
file_idFileID
matches ^file_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$
urlInputURL

Public HTTPS URL of a reference image, video or audio file. Yir downloads it once at submission (up to 100 MiB, 3 redirects, private and reserved addresses refused), detects the type from the file contents, and stores it as an input file so every attempt and fallback reads the same bytes. Data URLs are not accepted. A URL that cannot be imported returns YIR_INVALID_REQUEST naming the reference; retryable is true only for remote timeouts, connection failures, HTTP 429 and 5xx. Quote does not download URLs, so prices that depend on input media are only estimated; upload through the Files API for larger files or exact media-dependent quotes.

max length 2048 · matches ^https://
One of:
any
any
any
any
routingRoutingOverride

Request-scoped routing intent. only is an unordered Provider allowlist; selection and fallback stay within this set and within any channel restrictions on the API Key's routing profile. 'official' is accepted as an alias for the model's official provider channel in both only and variants (normalized before execution). A single item supports targeted testing. Custom order is not supported. preference and fallback remain optional.

Show properties
variantsobject

Provider-to-channel-variant selection. Providers omitted from this map consider all eligible variants; explicitly select standard to restrict a provider to its standard variant. Keys must belong to only when only is supplied ('official' alias is resolved before whitelist validation). Explicitly selected unknown or unavailable variants never fall back to another variant of the same provider.

preferencestring

Overrides the routing profile default for route ordering. cost (the default) orders routes by estimated price, lowest first. speed orders routes by observed upstream median latency for the same model and specification, fastest first; routes with fewer than 10 recent samples follow, ordered by estimated price. max_cost, only and fallback apply unchanged.

Allowed:costspeed
onlystring[]
min items 1 · max items 16
fallbackboolean
fidelitystring

Lowest acceptable fidelity of the delivered file, judged from the vendor's C2PA content signature. original: only routes verified as untouched vendor API output, plus the official channel. genuine (the default): excludes routes known to upscale or otherwise alter the output. any: no restriction, cheapest. Overrides the routing profile default. When every route is excluded the request fails with YIR_FIDELITY_EXCLUDED; quotes report the specification as unavailable.

Allowed:originalgenuineany
accelerateboolean

Route acceleration, on by default; overrides the routing profile default. When an image attempt stays unresolved upstream well past that channel's usual completion time (about twice its recent p99, at least 5 minutes) and another eligible route remains within only, max_cost and the three-attempt limit, Yir cuts the attempt off and retries on the next route. The cut-off attempt never supplies the result; if its upstream bills it anyway, that actual cost is charged like any other upstream-billed attempt and counts toward max_cost. Requires fallback. Only image jobs are accelerated; video jobs are not, because a cut-off video attempt can still be billed. Set false to always wait for the first channel.

webhook_urlstring<uri>
max length 1000 · matches ^https://
parametersStandard3DParameters

Optional 3D parameters; omitted fields take the model defaults and a model accepts only the values its contract declares. Every Job delivers one glb file.

Show properties
texturestring

none returns an untextured mesh; standard and hd bake textures (hd is higher resolution where the model supports it).

Allowed:nonestandardhd
pbrboolean

Generate PBR maps (metallic, roughness, normal) in addition to base color. Requires a texture. Some models charge extra (see the quote).

face_limitinteger

Target face count. Range and default come from the model contract; omit it for the model default. Some models charge extra for a custom count.

min 1 · max 5000000
topologystring

Mesh face type; quad is a quad-dominant remesh where supported. The glb file stores triangles.

Allowed:trianglequad
ninteger

One model per Job.

Allowed:1
Responses
202

Job accepted

parameter_noticesParameterNotice[]

Actual handling from the successful attempt snapshot; omitted before success.

Show properties
Array of ParameterNotice
namestringrequired
min length 1
dispositionstringrequired

ignored: the parameter was not applied. exceeded: the delivered result exceeds the request (extra outputs trimmed to n, a higher resolution with the requested aspect ratio, or audio although generate_audio is false) and is charged no more than the quote.

Allowed:ignoredexceeded
reasonstringrequired
Allowed:channel_parameter_unsupportedquality_requires_official_channelparameter_fixed_by_modelduplicate_referencenot_used_by_quoteoutput_count_exceededresolution_exceededaudio_includedtexture_includedpbr_included
messagestringrequired
idstringrequired

Opaque Job ID; do not parse it.

min length 1 · max length 64
objectstringrequired
final_providerstring

Provider of the adopted result, present only for successful jobs. Does not expose candidate routes.

min length 1
statusstringrequired
Allowed:queuedrunningdeliveringsucceededfailedcancelled
modelstringrequired
min length 1
parametersQuoteParameters

The normalized parameters the Job executes with, in the same shape as the quote echo, so a caller can check the delivered result against what was charged. Present from creation.

Show properties
sizestring

Optional exact output pixels (WIDTHxHEIGHT), only for models and channels that explicitly support the requested size. Omitted resolution and aspect_ratio are resolved from the declared size; explicit conflicting values are rejected. No approximate resizing or tier substitution. Omit to preserve the existing model defaults.

matches ^[1-9][0-9]*x[1-9][0-9]*$
qualitystring

Image quality tier when the request constrains one; absent when omitted, which lets any channel run.

min length 1
fpsinteger

Optional native output frame rate. Only models and channels explicitly declaring this frame rate are eligible; unsupported values are rejected without interpolation or transcoding. Omit to preserve existing behavior.

min 1
durationinteger | string

Video output length in seconds, or auto for supported reference-video edits. Quote and Job preserve auto; measured seconds are only used internally for estimation.

Show properties
One of:
integer
integer
string
string
resolutionstring
min length 1
aspect_ratiostring
min length 1
generate_audioboolean

Present when the model declares generate_audio.

dynamic_rangestring

Present for HDR video requests. Omitted for SDR.

Allowed:hdr
instrumentalboolean

Music only: no vocals.

lyrics_optimizerboolean

Music only: lyrics written from the prompt.

voicestring

Text-to-speech only: the resolved preset voice ID.

min length 1
ninteger
min 1
max_imagesinteger
min 2 · max 100
One of:
any
any
any
any
urlsJobURLs
Show properties
getstringrequired
matches ^/v1/jobs/[^/]+$
cancelstringrequired
matches ^/v1/jobs/[^/]+/cancel$
resultResult
Show properties
availabilitystringrequired
Allowed:availableexpired
filesResultFile[]
min items 1
Show properties
Array of ResultFile
urlstring<uri>required
matches ^https://
media_typestringrequired
min length 3
widthinteger
min 0
heightinteger
min 0
duration_msinteger<int64>

Measured playback duration of an audio result in milliseconds. Omitted when not measured.

min 1
facesinteger<int64>

Measured triangle count of a 3D (glb) result. Omitted when not measured.

min 1
swap_checksResultFileSwapChecks

Video person swap only: per-position check of the delivered video. similarity_to_original is the highest face similarity between the original person at that position and any face in the output; below threshold counts as swapped. Best effort: the video is delivered even when some positions are not swapped.

Show properties
thresholdnumberrequired
all_swappedbooleanrequired
passesintegerrequired

Repair passes run after the main generation.

min 0
slotsobject[]required
Show properties
Array of object
idstringrequired

The reference subject.

similarity_to_originalnumber | nullrequired
min 0 · max 1
swappedbooleanrequired
layerResultFileLayer

Layer decomposition only. Composite in ascending z_index. Zero is the base. A layer may omit its bounding box when the provider does not return coordinates.

Show properties
z_indexintegerrequired
min 0 · max 99
bounding_boxobject
Show properties
absoluteinteger[]

[left, top, right, bottom] in base-image pixels.

min items 4 · max items 4
normalizedinteger[]

[left, top, right, bottom] mapped onto 0–1000.

min items 4 · max items 4
expires_atinteger<int64>required
min 1
fidelityResultFileFidelity

Where this file came from and whether its specification is genuine, judged at delivery from the file's C2PA content signature and Yir's channel audits. original: untouched output of the vendor API. app: untouched output of the vendor's consumer app (for example ChatGPT), whose size and quality the app decides. equivalent: no valid vendor signature, but evidence shows the file is native model output with no post-processing (the signature was removed without re-encoding, or the channel passed Yir's quality audit). altered: changed after generation, for example upscaled. unverified: no evidence either way. Omitted for historical results.

Show properties
gradestringrequired
Allowed:originalappequivalentalteredunverified
reasonstringrequired

Stable reason code, for example vendor_signed, signature_scrubbed, route_audited, hash_mismatch, signature_missing, third_party_signed, unsigned.

warningsstring[]

The primary result was delivered, but an optional additional result could not be delivered. Does not change Job success or authorize regeneration. Omitted when no delivery warning exists, including historical results.

min items 1 · max items 1
content_safetyResultContentSafety

NSFW check outcome for the delivered result. passed with checked_by: provider means the upstream provider enforces content moderation; passed with checked_by: yir means Yir checked the output itself. unchecked means the output check was unavailable or could not be applied. Yir's output check only blocks explicit adult content. Omitted for historical results.

Show properties
statusstringrequired
Allowed:passedunchecked
checked_bystring
Allowed:provideryir
One of:
object
availabilityany
object
availabilityany
usageJobUsage
Show properties
outputsintegerrequired
min 0
billingBilling
Show properties
billing_modeActualBillingModedeprecated

Legacy compatibility field. Omit for new requests. When retrying an existing idempotency key, preserve its original request including this field. Explicit consent to the authoritative actual cost of every upstream-billed attempt of the Job, without a max_cost cap. Eligible channels must provide authoritative task-level charges. Automatic routing is supported; routing.only is optional and, when supplied, remains binding. Cannot be combined with max_cost. Insufficient wallet funds become Job debt repaid by future manual recharge; outstanding debt blocks new Jobs. Every attempt the upstream actually billed is charged to the user, including failed and non-winning ones; attempts the upstream did not bill, and Yir's own delivery failures or outcome timeouts, are not charged. Omit for the default contract: balance is not frozen, each attempt checks the live balance against its route estimate, each upstream-billed attempt is charged at the authoritative upstream amount after the managed discount, and an explicit max_cost caps the Job's total charge.

currencystringrequired
compute_chargesComputeCharge[]required
Show properties
Array of ComputeCharge
supply_typestringrequireddeprecated

Compatibility field. Yir Cloud always uses managed supply.

Allowed:managed
billed_bystringrequireddeprecated

Compatibility field. Charges always use the Yir wallet.

Allowed:yir
amountDecimalrequired
matches ^(0|[0-9]+)(\.[0-9]+)?$
amount_basisstringrequired

Legacy identifier for actual upstream cost with the applicable channel factor and user discount. It does not mean the estimate determines the charge.

Allowed:yir_price_rule
usageUsage[]
Show properties
Array of Usage
metricstringrequired
matches ^[a-z][a-z0-9_]*$
quantityDecimalrequired
matches ^(0|[0-9]+)(\.[0-9]+)?$
unitstringrequired
matches ^[a-z][a-z0-9_]*$
statusstringrequired
Allowed:settledwaived
gateway_feeGatewayFeerequireddeprecated

Compatibility field, currently zero and waived. Read total_charged_by_yir and billing.status.

Show properties
amountDecimalrequired
matches ^(0|[0-9]+)(\.[0-9]+)?$
statusstringrequired
Allowed:settledwaived
statusstring

Billing completion is independent of Job completion. pending means more charges may arrive; settled confirms the current total is final. Older servers may omit this field; zero or empty compute_charges does not prove settlement.

Allowed:pendingsettled
total_charged_by_yirDecimalrequired

USD charged so far. Final only when billing.status is settled.

matches ^(0|[0-9]+)(\.[0-9]+)?$
max_costMaxCost

Optional cap on the Job's total charge in USD, with up to 6 decimal places. Balance is not frozen: admission and every attempt submission check the live available balance against that route's estimate (catalog price for fixed routes, output estimate for usage-based routes). Every attempt the upstream actually billed is charged at the authoritative upstream amount after the managed discount, whether it succeeded, failed, or was followed by a fallback; attempts the upstream never billed cost nothing, and Yir absorbs its own delivery failures and outcome timeouts. A result the upstream billed that Yir rejects as YIR_CONTENT_REJECTED is charged the same way but not delivered. Any part the balance cannot cover becomes a negative balance that blocks new jobs until a top-up. With max_cost, routes whose estimate exceeds it are skipped, and the Job's total charge across all attempts never exceeds it; Yir absorbs any excess. If no route fits, the request is rejected with 422 YIR_BUDGET_EXCEEDED naming the lowest current estimate. Estimates are not locked: channel availability, routing defaults and catalog prices can change them, so a tight cap can start rejecting requests that used to pass. Leave headroom over the quote, and on YIR_BUDGET_EXCEEDED quote again before deciding to raise the cap. Historical jobs retain their recorded billing terms.

max length 20 · matches ^[0-9]{1,13}(\.[0-9]{1,6})?$
official_comparisonOfficialComparison

Successful jobs only. Complete fixed USD official price frozen at admission for the exact request. Savings is baseline minus all Yir charges, including recovery attempts; it may be negative. Omitted for historical jobs, dynamic prices and missing baselines.

Show properties
baseline_amountDecimalrequired
matches ^(0|[0-9]+)(\.[0-9]+)?$
savings_amountstringrequired
matches ^-?[0-9]+(?:\.[0-9]+)?$
source_urlstring<uri>
errorError | nullrequired
Show properties
One of:
Error
codestringrequired
Allowed:YIR_INVALID_REQUESTYIR_UNAUTHORIZEDYIR_INVALID_ROUTING_OVERRIDEYIR_ROUTING_OVERRIDE_NOT_ALLOWEDYIR_INSUFFICIENT_BALANCEYIR_BUDGET_EXCEEDEDYIR_SPEND_LIMIT_EXCEEDEDYIR_JOB_NOT_FOUNDYIR_FILE_NOT_FOUNDYIR_FILE_NOT_READYYIR_FILE_EXPIREDYIR_MODEL_NOT_FOUNDYIR_IDEMPOTENCY_CONFLICTYIR_JOB_NOT_CANCELLABLEYIR_NO_EXECUTABLE_ROUTEYIR_RATE_LIMITEDYIR_TEMPORARILY_UNAVAILABLEYIR_EXECUTION_FAILEDYIR_INPUT_REJECTEDYIR_CONTENT_REJECTEDYIR_OUTCOME_TIMEOUTYIR_RESULT_DELIVERY_FAILEDYIR_JOB_TIMEOUTYIR_FIDELITY_EXCLUDEDYIR_ACCOUNT_RESTRICTED
messagestringrequired
min length 1
retryablebooleanrequired
actionstring
Allowed:fix_requestmodify_inputadd_fundsretry_latercontact_support
provider_errorobject

Present on a failed Job whenever the upstream gave a reason for the last failed attempt, except failures of Yir's own provider account. Sanitized diagnostic text: links and request echoes are removed, and wording is not stable; branch on code.

Show properties
providerstringrequired

Public provider code of the rejecting route.

min length 1
messagestringrequired
min length 1 · max length 500
detailsobject[]

Field-level causes of a YIR_INVALID_REQUEST error, for correcting the request without parsing message.

min items 1
Show properties
Array of object
fieldstringrequired

Request path, for example parameters.resolution or input.references.0.role.

min length 1
reasonstringrequired
Allowed:invalid_bodyunknown_fieldwrong_typerequiredunsupportednot_allowedinvalidretired
allowedstring[]

Contract values the field accepts; for a retired model, its replacement.

expectedstring

Expected type or condition.

null
null
cancellationCancellation
Show properties
statusstringrequired
Allowed:cancelledstop_requested
effectstring
Allowed:stop_future_attempts
requested_atinteger<int64>required
min 1
created_atinteger<int64>required
min 1
completed_atinteger<int64>
min 1
400
401
402
403

The API key reached its monthly spend limit (YIR_SPEND_LIMIT_EXCEEDED), or the account is restricted from submitting new Jobs (YIR_ACCOUNT_RESTRICTED), for example paused after repeated content safety rejections. Neither is retried automatically.

errorErrorrequired
Show properties
codestringrequired
Allowed:YIR_INVALID_REQUESTYIR_UNAUTHORIZEDYIR_INVALID_ROUTING_OVERRIDEYIR_ROUTING_OVERRIDE_NOT_ALLOWEDYIR_INSUFFICIENT_BALANCEYIR_BUDGET_EXCEEDEDYIR_SPEND_LIMIT_EXCEEDEDYIR_JOB_NOT_FOUNDYIR_FILE_NOT_FOUNDYIR_FILE_NOT_READYYIR_FILE_EXPIREDYIR_MODEL_NOT_FOUNDYIR_IDEMPOTENCY_CONFLICTYIR_JOB_NOT_CANCELLABLEYIR_NO_EXECUTABLE_ROUTEYIR_RATE_LIMITEDYIR_TEMPORARILY_UNAVAILABLEYIR_EXECUTION_FAILEDYIR_INPUT_REJECTEDYIR_CONTENT_REJECTEDYIR_OUTCOME_TIMEOUTYIR_RESULT_DELIVERY_FAILEDYIR_JOB_TIMEOUTYIR_FIDELITY_EXCLUDEDYIR_ACCOUNT_RESTRICTED
messagestringrequired
min length 1
retryablebooleanrequired
actionstring
Allowed:fix_requestmodify_inputadd_fundsretry_latercontact_support
provider_errorobject

Present on a failed Job whenever the upstream gave a reason for the last failed attempt, except failures of Yir's own provider account. Sanitized diagnostic text: links and request echoes are removed, and wording is not stable; branch on code.

Show properties
providerstringrequired

Public provider code of the rejecting route.

min length 1
messagestringrequired
min length 1 · max length 500
detailsobject[]

Field-level causes of a YIR_INVALID_REQUEST error, for correcting the request without parsing message.

min items 1
Show properties
Array of object
fieldstringrequired

Request path, for example parameters.resolution or input.references.0.role.

min length 1
reasonstringrequired
Allowed:invalid_bodyunknown_fieldwrong_typerequiredunsupportednot_allowedinvalidretired
allowedstring[]

Contract values the field accepts; for a retired model, its replacement.

expectedstring

Expected type or condition.

request_idstringrequired
min length 1
409
422

No route can execute the request within its constraints (YIR_NO_EXECUTABLE_ROUTE). When every channel that supports the request is temporarily down, the error is retryable and carries Retry-After.

errorErrorrequired
Show properties
codestringrequired
Allowed:YIR_INVALID_REQUESTYIR_UNAUTHORIZEDYIR_INVALID_ROUTING_OVERRIDEYIR_ROUTING_OVERRIDE_NOT_ALLOWEDYIR_INSUFFICIENT_BALANCEYIR_BUDGET_EXCEEDEDYIR_SPEND_LIMIT_EXCEEDEDYIR_JOB_NOT_FOUNDYIR_FILE_NOT_FOUNDYIR_FILE_NOT_READYYIR_FILE_EXPIREDYIR_MODEL_NOT_FOUNDYIR_IDEMPOTENCY_CONFLICTYIR_JOB_NOT_CANCELLABLEYIR_NO_EXECUTABLE_ROUTEYIR_RATE_LIMITEDYIR_TEMPORARILY_UNAVAILABLEYIR_EXECUTION_FAILEDYIR_INPUT_REJECTEDYIR_CONTENT_REJECTEDYIR_OUTCOME_TIMEOUTYIR_RESULT_DELIVERY_FAILEDYIR_JOB_TIMEOUTYIR_FIDELITY_EXCLUDEDYIR_ACCOUNT_RESTRICTED
messagestringrequired
min length 1
retryablebooleanrequired
actionstring
Allowed:fix_requestmodify_inputadd_fundsretry_latercontact_support
provider_errorobject

Present on a failed Job whenever the upstream gave a reason for the last failed attempt, except failures of Yir's own provider account. Sanitized diagnostic text: links and request echoes are removed, and wording is not stable; branch on code.

Show properties
providerstringrequired

Public provider code of the rejecting route.

min length 1
messagestringrequired
min length 1 · max length 500
detailsobject[]

Field-level causes of a YIR_INVALID_REQUEST error, for correcting the request without parsing message.

min items 1
Show properties
Array of object
fieldstringrequired

Request path, for example parameters.resolution or input.references.0.role.

min length 1
reasonstringrequired
Allowed:invalid_bodyunknown_fieldwrong_typerequiredunsupportednot_allowedinvalidretired
allowedstring[]

Contract values the field accepts; for a retired model, its replacement.

expectedstring

Expected type or condition.

request_idstringrequired
min length 1
429

Too many Jobs are in progress, or the API key exceeded its per-minute request rate (YIR_RATE_LIMITED).

errorErrorrequired
Show properties
codestringrequired
Allowed:YIR_INVALID_REQUESTYIR_UNAUTHORIZEDYIR_INVALID_ROUTING_OVERRIDEYIR_ROUTING_OVERRIDE_NOT_ALLOWEDYIR_INSUFFICIENT_BALANCEYIR_BUDGET_EXCEEDEDYIR_SPEND_LIMIT_EXCEEDEDYIR_JOB_NOT_FOUNDYIR_FILE_NOT_FOUNDYIR_FILE_NOT_READYYIR_FILE_EXPIREDYIR_MODEL_NOT_FOUNDYIR_IDEMPOTENCY_CONFLICTYIR_JOB_NOT_CANCELLABLEYIR_NO_EXECUTABLE_ROUTEYIR_RATE_LIMITEDYIR_TEMPORARILY_UNAVAILABLEYIR_EXECUTION_FAILEDYIR_INPUT_REJECTEDYIR_CONTENT_REJECTEDYIR_OUTCOME_TIMEOUTYIR_RESULT_DELIVERY_FAILEDYIR_JOB_TIMEOUTYIR_FIDELITY_EXCLUDEDYIR_ACCOUNT_RESTRICTED
messagestringrequired
min length 1
retryablebooleanrequired
actionstring
Allowed:fix_requestmodify_inputadd_fundsretry_latercontact_support
provider_errorobject

Present on a failed Job whenever the upstream gave a reason for the last failed attempt, except failures of Yir's own provider account. Sanitized diagnostic text: links and request echoes are removed, and wording is not stable; branch on code.

Show properties
providerstringrequired

Public provider code of the rejecting route.

min length 1
messagestringrequired
min length 1 · max length 500
detailsobject[]

Field-level causes of a YIR_INVALID_REQUEST error, for correcting the request without parsing message.

min items 1
Show properties
Array of object
fieldstringrequired

Request path, for example parameters.resolution or input.references.0.role.

min length 1
reasonstringrequired
Allowed:invalid_bodyunknown_fieldwrong_typerequiredunsupportednot_allowedinvalidretired
allowedstring[]

Contract values the field accepts; for a retired model, its replacement.

expectedstring

Expected type or condition.

request_idstringrequired
min length 1
503
Request
curl -X POST 'https://gateway.yir.ai/v1/3d/generations' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Idempotency-Key: string' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "tripo/tripo-h3.1",
  "input": {
    "type": "text",
    "prompt": "A weathered wooden armchair with a woven seat"
  },
  "parameters": {
    "texture": "standard",
    "pbr": true
  },
  "webhook_url": "https://example.com/webhooks/yir"
}'
Response
{
  "parameter_notices": [
    {
      "name": "string",
      "disposition": "ignored",
      "reason": "channel_parameter_unsupported",
      "message": "string"
    }
  ],
  "id": "string",
  "object": "job",
  "final_provider": "string",
  "status": "queued",
  "model": "string",
  "parameters": {
    "size": "string",
    "quality": "string",
    "fps": 1,
    "duration": 1,
    "resolution": "string",
    "aspect_ratio": "string",
    "generate_audio": true,
    "dynamic_range": "hdr",
    "instrumental": true,
    "lyrics_optimizer": true,
    "voice": "string",
    "n": 1,
    "max_images": 2
  },
  "urls": {
    "get": "string",
    "cancel": "string"
  },
  "result": {
    "availability": "available",
    "files": [
      {
        "url": "http://example.com",
        "media_type": "string",
        "width": 0,
        "height": 0,
        "duration_ms": 1,
        "faces": 1,
        "swap_checks": {
          "threshold": 0,
          "all_swapped": true,
          "passes": 0,
          "slots": [
            {
              "id": "string",
              "similarity_to_original": 0,
              "swapped": true
            }
          ]
        },
        "layer": {
          "z_index": 0,
          "bounding_box": {
            "absolute": [
              0,
              0,
              0,
              0
            ],
            "normalized": [
              0,
              0,
              0,
              0
            ]
          }
        },
        "expires_at": 1,
        "fidelity": {
          "grade": "original",
          "reason": "string"
        }
      }
    ],
    "warnings": [
      "additional_results_unavailable"
    ],
    "content_safety": {
      "status": "passed",
      "checked_by": "provider"
    }
  },
  "usage": {
    "outputs": 0
  },
  "billing": {
    "billing_mode": "actual",
    "currency": "USD",
    "compute_charges": [
      {
        "supply_type": "managed",
        "billed_by": "yir",
        "amount": "string",
        "amount_basis": "yir_price_rule",
        "usage": [
          {
            "metric": "string",
            "quantity": "string",
            "unit": "string"
          }
        ],
        "status": "settled"
      }
    ],
    "gateway_fee": {
      "amount": "string",
      "status": "settled"
    },
    "status": "pending",
    "total_charged_by_yir": "string",
    "max_cost": "string",
    "official_comparison": {
      "baseline_amount": "string",
      "savings_amount": "string",
      "source_url": "http://example.com"
    }
  },
  "error": {
    "code": "YIR_INVALID_REQUEST",
    "message": "string",
    "retryable": true,
    "action": "fix_request",
    "provider_error": {
      "provider": "string",
      "message": "string"
    },
    "details": [
      {
        "field": "string",
        "reason": "invalid_body",
        "allowed": [
          "string"
        ],
        "expected": "string"
      }
    ]
  },
  "cancellation": {
    "status": "cancelled",
    "effect": "stop_future_attempts",
    "requested_at": 1
  },
  "created_at": 1,
  "completed_at": 1
}