## Basic model info - Model name: tripo/tripo tripo-p1 - Model description: Tripo P1 quickly generates game-ready, low-poly Smart Mesh models with 48 to 20,000 faces from text or an image. - Endpoint name: text-to-3d ## Model schema The model schema is defined in the OpenAPI schema: [OpenAPI Schema](https://oapi.sunra.ai/main/tripo/tripo-p1/latest.json) ### Model input schema The model input schema is: ```json { "properties": { "prompt": { "description": "Text description of the 3D object to generate. Maximum 1024 characters.", "maxLength": 1024, "title": "Prompt", "type": "string", "x-sr-order": 201 }, "face_limit": { "anyOf": [ { "maximum": 20000, "minimum": 48, "type": "integer" }, { "type": "null" } ], "description": "Target number of faces for the generated mesh. If not set, the model adaptively determines the count.", "title": "Face Limit", "x-sr-order": 401 }, "model_seed": { "anyOf": [ { "type": "integer" }, { "type": "null" } ], "description": "Seed for geometry generation reproducibility.", "title": "Model Seed", "x-sr-order": 402 }, "texture": { "default": true, "description": "Whether to generate textures for the model.", "title": "Texture", "type": "boolean", "x-sr-order": 501 } }, "required": [ "prompt" ], "title": "TextTo3DInput", "type": "object" } ``` ### Model output schema The model output schema is: ```json { "properties": { "base_model": { "anyOf": [ { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" }, { "type": "null" } ], "description": "Generated base 3D model mesh file" }, "model_mesh": { "anyOf": [ { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" }, { "type": "null" } ], "description": "Generated 3D model mesh file" }, "pbr_model": { "anyOf": [ { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" }, { "type": "null" } ], "description": "Generated PBR 3D model mesh file" }, "rendered_image": { "anyOf": [ { "properties": { "content_type": { "description": "The mime type of the file.", "title": "Content Type", "type": "string" }, "file_name": { "description": "The name of the file. It will be auto-generated if not provided.", "title": "File Name", "type": "string" }, "file_size": { "description": "The size of the file in bytes.", "title": "File Size", "type": "integer" }, "url": { "description": "The URL where the file can be downloaded from.", "title": "Url", "type": "string" } }, "required": [ "content_type", "file_name", "file_size", "url" ], "title": "SunraFile", "type": "object" }, { "type": "null" } ], "description": "A preview image of the model" }, "score": { "description": "Request cost in USD", "exclusiveMinimum": 0, "title": "Score", "type": "number" } }, "required": [ "score" ], "title": "TripoP1Output", "type": "object" } ``` ## Example inputs and outputs Use the following example inputs and outputs to understand the model. ### Input example ```json { "prompt": "", "face_limit": null, "model_seed": null, "texture": true } ``` ### Output example ```json { } ``` ## Model code examples ### JavaScript ```javascript import { sunra } from "@sunra/client"; const result = await sunra.subscribe("tripo/tripo-p1/text-to-3d", { input: { prompt: '', face_limit: null, model_seed: null, texture: true }, logs: true, onQueueUpdate: (update) => { console.log(`Status Update: ${update.status}, Request ID: ${update.request_id}`); }, }); console.log(result.data); console.log(result.requestId); ``` ### Python ```python import sunra_client result = sunra_client.subscribe( "tripo/tripo-p1/text-to-3d", arguments={ "prompt": "", "face_limit": None, "model_seed": None, "texture": True }, with_logs=True, on_enqueue=print, on_queue_update=print, ) print(result) ``` ### Java ```java import ai.sunra.client.*; import java.util.Map; import com.google.gson.JsonObject; var client = SunraClient.withEnvCredentials(); var response = client.subscribe( "tripo/tripo-p1/text-to-3d", SubscribeOptions.builder() .input(Map.of( "prompt", "", "face_limit", null, "model_seed", null, "texture", true)) .resultType(JsonObject.class) .onQueueUpdate(update -> System.out.printf( "\nStatus Update: %s, Request ID: %s%n", update.getStatus(), update.getRequestId() )) .logs(true) .build() ); System.out.println("Completed!"); System.out.println(response.getData()); ``` ### Kotlin ```kotlin import ai.sunra.client.kt.* import com.google.gson.JsonObject val client = createSunraClient() val response = client.subscribe( endpointId = "tripo/tripo-p1/text-to-3d", input = mapOf( "prompt" to "", "face_limit" to null, "model_seed" to null, "texture" to true), options = ai.sunra.client.kt.SubscribeOptions(logs = true), onUpdate = { update -> println("\nStatus Update: ${update.status}, Request ID: ${update.requestId}") } ) println("Completed!") println(response.data) ``` ### Curl ```bash curl --request POST \ --url https://api.sunra.ai/v1/queue/tripo/tripo-p1/text-to-3d \ --header "Authorization: Key $SUNRA_KEY" \ --header "Content-Type: application/json" \ --data '{"prompt":"","face_limit":null,"model_seed":null,"texture":true}' ``` ## Model readme > Text or one image. Set texture=false for geometry-only output. face_limit supports 48–20,000 faces for game-ready low-poly Smart Mesh assets. > > model_mesh contains the generated asset; base_model, pbr_model, and rendered_image are returned when available. This model does not provide rigging or animation. > > Submit with POST https://api.sunra.ai/v1/queue/tripo/tripo-p1/ and Authorization: Key . Poll GET /v1/queue/requests/{request_id}/status, then fetch GET /v1/queue/requests/{request_id}. Generation is asynchronous and can take several minutes; do not resubmit a pending request. Failed requests expose an error; correct invalid inputs before retrying. > > Every returned file has a download URL, content type, name, and size. Download and retain assets needed for long-term use; the API does not promise a permanent URL lifetime. score is the request's USD billing quantity; the settled billing block reports the actual charge. See the endpoint price ladder for generation options and add-ons.