Quote a 3D job
Estimates the price and checks available supply for a 3D request. Creates no job and charges nothing.
/v1/3d/quotesAuthorizationBearer token (YIR_API_KEY) · headerrequiredapplication/jsonmax_costanySubmit-only. A quote ignores any value and reports max_cost in parameter_notices.
webhook_urlanySubmit-only. A quote ignores any value and reports webhook_url in parameter_notices.
billing_modeActualBillingModedeprecatedLegacy 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.
modelstringrequired3D model ID or alias listed by GET /v1/models. An unknown or retired model returns 400 YIR_INVALID_REQUEST with retryable false.
inputStandard3DTextInput | Standard3DImageInput | Standard3DMultiviewInputrequiredShow propertiesHide properties
typestringrequiredpromptstringrequiredDescription of the object to model. The per-model limit is in the model contract (1024 for Tripo, 600 for Meshy).
typestringrequiredreferencesany[]requiredExactly one image with role reference_image; a plain background and one object filling most of the frame work best.
Show propertiesHide properties
anyrolestringrequiredfile_idFileIDurlInputURLPublic 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.
anyanytypestringrequiredreferencesany[]requiredOne front_view plus at least one of left_view, back_view and right_view, each at most once.
Show propertiesHide properties
anyrolestringrequiredfront_viewleft_viewback_viewright_viewfile_idFileIDurlInputURLPublic 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.
anyanyroutingRoutingOverrideRequest-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 propertiesHide properties
variantsobjectProvider-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.
preferencestringOverrides 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.
costspeedonlystring[]fallbackbooleanfidelitystringLowest 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.
originalgenuineanyacceleratebooleanRoute 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.
parametersStandard3DParametersOptional 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 propertiesHide properties
texturestringnone returns an untextured mesh; standard and hd bake textures (hd is higher resolution where the model supports it).
nonestandardhdpbrbooleanGenerate PBR maps (metallic, roughness, normal) in addition to base color. Requires a texture. Some models charge extra (see the quote).
face_limitintegerTarget face count. Range and default come from the model contract; omit it for the model default. Some models charge extra for a custom count.
topologystringMesh face type; quad is a quad-dominant remesh where supported. The glb file stores triangles.
trianglequadnintegerOne model per Job.
1Current advisory quote
parameter_noticesParameterNotice[]Expected primary-channel handling; actual handling is reported by the successful Job.
Show propertiesHide properties
ParameterNoticenamestringrequireddispositionstringrequiredignored: 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.
ignoredexceededreasonstringrequiredchannel_parameter_unsupportedquality_requires_official_channelparameter_fixed_by_modelduplicate_referencenot_used_by_quoteoutput_count_exceededresolution_exceededaudio_includedtexture_includedpbr_includedmessagestringrequiredbilling_modeActualBillingModedeprecatedLegacy 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.
parameter_handling_may_varybooleanFallback may handle parameters differently.
supplyobjectrequiredWhether any route can currently serve this request. Available supply has an empty issues array. No matching supply returns available=false and no_matching_supply, with primary unavailable. Authentication, invalid requests, and infrastructure failures remain errors.
Show propertiesHide properties
availablebooleanrequiredissuesstring[]requiredobjectstringrequiredmodelstringrequiredCanonical model ID, also when the request used an alias.
operationstringrequiredgenerate_imagegenerate_videogenerate_musicgenerate_sound_effectgenerate_speechgenerate_3dinput_modestringrequiredtextimagereferencemultiviewlayer_decompositionparametersQuoteParametersrequiredThe normalized parameters a request resolves to: every parameter the model contract declares for the operation, at its contract spelling, with omitted parameters at their published default. Parameters the model does not declare are absent, so an image echo carries no duration, a silent video model carries no generate_audio, a music echo carries instrumental and lyrics_optimizer (plus duration for length-priced models) but no resolution or aspect_ratio, a sound-effect echo carries n and duration, and a text-to-speech echo carries n and voice. Regular image and video echoes include resolution and aspect_ratio. Layer decomposition echoes resolution and max_images. Only the common parameters are documented here; model-specific parameters are echoed under their contract names.
Show propertiesHide properties
sizestringOptional 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.
qualitystringImage quality tier when the request constrains one; absent when omitted, which lets any channel run.
fpsintegerOptional 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.
durationinteger | stringVideo 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 propertiesHide properties
integerstringresolutionstringaspect_ratiostringgenerate_audiobooleanPresent when the model declares generate_audio.
dynamic_rangestringPresent for HDR video requests. Omitted for SDR.
hdrinstrumentalbooleanMusic only: no vocals.
lyrics_optimizerbooleanMusic only: lyrics written from the prompt.
voicestringText-to-speech only: the resolved preset voice ID.
nintegermax_imagesintegeranyanycurrencystringrequiredexpires_atinteger<int64>requiredinput_duration_sourcestringdeclared when primary and expected_amount price url reference media from the duration_seconds you declared rather than a measured file. The Job is admitted and charged by the duration Yir measures after importing the URL, so a longer actual file costs more. Omitted when the quote uses measured files or no input media duration.
declaredexpected_amountstringEstimated USD charge on the current preferred route, as used by admission: the live-balance check, the API Key monthly limit and max_cost compare against it. Unlike primary it includes known input charges (such as reference image tokens) and, for usage-billed routes with enough recent volume, recent actual charges. Omitted when no supply matches or the route has no reliable pre-generation estimate. It is a reference, not a charge ceiling; fallback routes may cost more.
primaryOutputQuoteEstimate | objectrequiredCurrent preferred route's estimate: its catalog reference price for fixed-price routes, or an output-only estimate for usage-based routes; otherwise unavailable. The Job is charged the authoritative upstream amounts of its billed attempts after the managed discount, which can differ from this estimate. An output-only estimate excludes input charges; neither is a charge ceiling, and Submit rechecks current facts. The independent official reference is reported in official.
Show propertiesHide properties
kindanyrequiredamountDecimalrequiredestimateanyrequiredShow propertiesHide properties
scopeanyrequiredoutput_tokensintegeroutput_megapixelsintegerBillable whole output megapixels using the model's declared pixel unit; excludes input megapixels. Mutually exclusive with output_tokens.
qualitystringReference quality used for the output estimate. Omitted quality uses the catalog's medium reference when available; this does not change generation parameters.
aspect_ratiostringReference aspect ratio used for the output estimate. Automatic aspect ratio uses a declared square reference when available; explicitly selected unsupported ratios remain unavailable.
anyanykindanyrequiredamountDecimalrequiredkindanyrequiredamountnullrequiredreasonstringrequiredofficialOutputQuoteEstimate | objectrequiredShow propertiesHide properties
kindanyrequiredamountDecimalrequiredestimateanyrequiredShow propertiesHide properties
scopeanyrequiredoutput_tokensintegeroutput_megapixelsintegerBillable whole output megapixels using the model's declared pixel unit; excludes input megapixels. Mutually exclusive with output_tokens.
qualitystringReference quality used for the output estimate. Omitted quality uses the catalog's medium reference when available; this does not change generation parameters.
aspect_ratiostringReference aspect ratio used for the output estimate. Automatic aspect ratio uses a declared square reference when available; explicitly selected unsupported ratios remain unavailable.
anyanykindanyrequiredamountDecimalrequiredkindanyrequiredamountnullrequiredreasonstringrequiredprice_difference_percentobjectOptional comparison with the official reference. Negative values mean a lower Yir price. Complete fixed prices are compared only with complete fixed prices. Output-only estimates are compared only when both prices use identical output assumptions; that comparison excludes input and other charges.
Show propertiesHide properties
minnumberrequiredmaxnumberrequiredreference_amount_microsinteger<int64>Too many Jobs are in progress, or the API key exceeded its per-minute request rate (YIR_RATE_LIMITED).
errorErrorrequiredShow propertiesHide properties
codestringrequiredYIR_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_RESTRICTEDmessagestringrequiredretryablebooleanrequiredactionstringfix_requestmodify_inputadd_fundsretry_latercontact_supportprovider_errorobjectPresent 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 propertiesHide properties
providerstringrequiredPublic provider code of the rejecting route.
messagestringrequireddetailsobject[]Field-level causes of a YIR_INVALID_REQUEST error, for correcting the request without parsing message.
Show propertiesHide properties
objectfieldstringrequiredRequest path, for example parameters.resolution or input.references.0.role.
reasonstringrequiredinvalid_bodyunknown_fieldwrong_typerequiredunsupportednot_allowedinvalidretiredallowedstring[]Contract values the field accepts; for a retired model, its replacement.
expectedstringExpected type or condition.
request_idstringrequired