Gen-2 Generation
This API will generate a mesh and textures for the given images and prompt.
false
concat
Possible values: glb
Possible values: PBR
Possible values: medium
Possible values: false
Quad
Possible values: true
true
false
curl https://api.hyper3d.com/api/v2/rodin \
--request POST \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--header 'Content-Type: multipart/form-data' \
--file 'images=@/path/to/your/image.png' \
--file "tier=Regular" \
...
{
"error": "text",
"message": "text",
"uuid": "text",
"jobs": {
"uuids": [
"text"
],
"subscription_key": "text"
}
}
Rodin Generation - Gen-2
Post requests with 'tier=Gen-2' to invoke Gen-2 generation.
Use this API to submit an asynchronous task to our server. You will get a task UUID from the API which can be used to check the status of the the task and download the result when the task is ready.
Pricing
Base Cost: 0.5 credit per generation.
Addons:
HighPack
: Additional 1 credit per generation.
Request
Authentication
This API uses bearer key for authentication. You need to include a valid token in the Authorization
header for all requests. Refer to the Quickstart section for how to generate an API key for your account.
Authorization: Bearer RODIN_API_KEY
Body
tier
string
Set the value to Gen-2
to invoke Gen-2 generaion.
Required. Tier of generation.
The default value is Regular
.
images
file/Binary
Images to be used in generation, up to 5 images. As the form data request will preserve the order of the images, the first image will be the image for material generation. For Image-to-3D generation: required (one or more images are needed, maximum 5 images) For Text-to-3D generation: null
prompt
string
A textual prompt to guide the model generation. For Image-to-3D generation: optional (if not provided, an AI-generated prompt based on the provided images will be used) For Text-to-3D generation: required
use_original_alpha
boolean
Default is false
. If True
, the original transparency channel of the images will be used when processing the image.
seed
number
Optional. A seed value for randomization in the mesh generation, ranging from 0 to 65535 (both inclusive). If not provided, the seed will be randomly generated.
geometry_file_format
string
Optional. The format of the output geometry file. Possible values are glb
, usdz
, fbx
, obj
, and stl
. Default is glb
.
material
string
Optional. The material type. Possible values are PBR
, Shaded
and All
. Default is PBR
.
PBR
: Physically Based Materials, including base color texture, metallicness texture, normal texture and roughness texture, providing high realism and physically accurate over dynamic lighting.
Shaded
: Only base color texture with baked lighting, providing stylized visuals.
All
: Both PBR
and Shaded
will be delivered.
quality
string
Optional. The generation quality.
Possible values are high
, medium
, low
, and extra-low
.
For Raw
: high
: 500k, medium
: 150k, low
: 20k, extra-low
: 2k, Default is high
.
For Quad
: high
: 50k, medium
: 18k, low
: 8k, extra-low
: 4k, Default is medium
.
quality_override
number
Optional. Customize poly count for generation, providing more accurate control over mesh face count.
When mesh_mode
= Raw
: Range from 500 to 1,000,000. Default is 500,000.
When mesh_mode
= Quad
: Range from 1,000 to 200,000. Default is 18,000.
Recommend 150,000+ faces for Gen-2.
This parameter is an advanced parameter of quality
. When this parameter is invoked, the quality
parameter will not take effect.
TAPose
bool
Optional. When generating the human-like model, this parameter control the generation result to T/A Pose.
When true
, your model will be either T pose or A pose.
bbox_condition
Array of Integer
Optional. This is a controlnet that controls the maxmimum sized of the generated model. This array must contain 3 elements, Width(Y-axis), Height(Z-axis), and Length(X-axis), in this exact fixed sequence (y, z, x).
mesh_mode
string
Optional. It controls the type of faces of generated models, Possible values are Raw
and Quad
. Default is Quad
.
The Raw
mode generates triangular face models.
The Quad
mode generates quadrilateral face models.
When its value is Raw
, addons
will be fixed to []
.
addons
array of strings
Optional. The default is []
. Possible values is HighPack
.
By selecting HighPack
:
Generate 4K resolution texture instead of the default 2K.
If Quad
mode, the number of faces will be ~16 times of the number of faces selected in the quality
parameter.
preview_render
bool
Optional. Default is false
.
If true
, an additional high-quality render image will be provided in the download list.
Response
error
string
Error message, if any.
message
string
Success message or detailed error information.
uuid
string
Unique identifier for the generated task.
jobs
object
A job object, containing details of individual jobs executed as part of the generation process.
jobs.uuids
array of strings
UUIDs of the sub-jobs.
jobs.subscription_key
string
Subscription key associated with these jobs.
Examples
Minimal Rodin Gen-2 Generation(Image-to-3D)
export RODIN_API_KEY="your api key"
curl https://api.hyper3d.com/api/v2/rodin \
-H "Authorization: Bearer ${RODIN_API_KEY}" \
-F "images=@/path/to/your/image.jpg" \
-F "tier=Gen-2"
unset RODIN_API_KEY
Minimal Rodin Gen-2 Generation(Text-to-3D)
export RODIN_API_KEY="your api key"
curl https://api.hyper3d.com/api/v2/rodin \
-H "Authorization: Bearer ${RODIN_API_KEY}" \
-F "prompt=A 3D model of a futuristic robot" \
-F "tier=Gen-2"
unset RODIN_API_KEY
Minimal Rodin Gen-2 Generation(Image-to-3D with multi-view images)
export RODIN_API_KEY="your api key"
curl https://api.hyper3d.com/api/v2/rodin \
-H "Authorization: Bearer ${RODIN_API_KEY}" \
-F 'condition_mode=concat' \
-F "images=@/path/to/your/image_0.jpg" \
-F "images=@/path/to/your/image_1.jpg" \
-F "tier=Gen-2"
unset RODIN_API_KEY
Comprehensive Rodin Gen-2 Generation with All Parameters
export RODIN_API_KEY="your api key"
curl https://api.hyper3d.com/api/v2/rodin \
-H "Authorization: Bearer ${RODIN_API_KEY}" \
-F "images=@/path/to/your/image.jpg" \
-F "tier=Gen-2" \
-F "prompt=A 3D model of a futuristic robot" \
-F "mesh_mode=Raw" \
-F "mesh_simplify=True" \
-F "seed=42" \
-F "geometry_file_format=fbx" \
-F "material=PBR" \
-F "quality_override=500000" \
unset RODIN_API_KEY
Last updated
Was this helpful?