Tasks
Retrieve a task
Returns image, video, or 3D task status and output by batch task ID or child item UUID. Provide exactly one of the id or uuid query parameters.
GET
/
openapi
/
v1
/
tasks
/
task-info
curl --request GET \
--url 'https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d' \
--header 'Authorization: Bearer <token>'
import requests
response = requests.request(
"GET",
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
headers={
"Authorization": "Bearer <token>",
},
)
print(response.json())
const response = await fetch(
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
{
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
}
);
const data = await response.json();
console.log(data);
const response: Response = await fetch(
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
{
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
}
);
const data = await response.json();
console.log(data);
import java.net.URI;
import java.net.http.*;
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d"))
.header("Authorization", "Bearer <token>")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(
request,
HttpResponse.BodyHandlers.ofString()
);
System.out.println(response.body());
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest(
"GET",
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
nil,
)
req.Header.Set("Authorization", "Bearer <token>")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
bodyBytes, _ := io.ReadAll(resp.Body)
fmt.Println(string(bodyBytes))
}
require "net/http"
require "json"
uri = URI("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <token>"
response = Net::HTTP.start(
uri.hostname,
uri.port,
use_ssl: uri.scheme == "https"
) do |http|
http.request(request)
end
puts response.body
<?php
$ch = curl_init("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(
HttpMethod.Get,
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d"
);
request.Headers.TryAddWithoutValidation("Authorization", "Bearer <token>");
using var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"id": "normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_3d",
"model": "dreamtech/neural4d-2.5",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 30
},
"output": {
"models": [
{
"uuid": "72e30159-a242-4491-a67c-2ad0cfc9efb6",
"format": "glb",
"model_urls": {
"glb": "https://s3.neural4d.com/results/model.glb"
},
"thumbnail_urls": {
"front": "https://s3.neural4d.com/results/t1.png"
},
"mesh_quality": "high",
"pose": "T-pose",
"target_polycount": 1000000,
"topology": "triangle",
"with_texture": true,
"with_pbr": true,
"image_enhancement": true,
"mode": "image_to_3d",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-3d-d60fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_3d",
"model": "dreamtech/neural4d-2.5",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 30
},
"output": {
"models": [
{
"uuid": "83f41260-b353-45a2-92c8-3be1dfe0a067",
"format": "obj",
"model_urls": {
"obj": "https://s3.neural4d.com/results/quad/model.obj",
"mtl": "https://s3.neural4d.com/results/quad/model.mtl"
},
"thumbnail_urls": {
"front": "https://s3.neural4d.com/results/quad/front.png"
},
"texture_urls": {
"albedo": "https://s3.neural4d.com/results/quad/albedo.png",
"normal": "https://s3.neural4d.com/results/quad/normal.png",
"roughness": "https://s3.neural4d.com/results/quad/roughness.png",
"metallic": "https://s3.neural4d.com/results/quad/metallic.png"
},
"mesh_quality": "standard",
"pose": "auto",
"target_polycount": 50000,
"topology": "quad",
"with_texture": true,
"with_pbr": true,
"image_enhancement": true,
"mode": "image_to_3d",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-image-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_image",
"model": "openai/gpt-image-2",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 13
},
"output": {
"images": [
{
"uuid": "c6f5dc4e-61ac-4694-9a8b-6a95f3ac4457",
"url": "https://s3.neural4d.com/results/image.png",
"format": "png",
"resolution": "2K",
"aspect_ratio": "1:1",
"mode": "image_to_image",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-video-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "first_frame_image_to_video",
"model": "bytedance/seedance-2.0-fast",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 26
},
"output": {
"videos": [
{
"uuid": "7d1fa4bb-41e6-4a5d-88d8-1851f5342e87",
"url": "https://s3.neural4d.com/results/video.mp4",
"last_frame_url": "https://s3.neural4d.com/results/video-last-frame.jpg?signature=example",
"format": "mp4",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"has_audio": true,
"mode": "first_frame_image_to_video",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"error": {
"code": "invalid_prompt",
"message": "prompt is required and must be a non-empty string"
}
}
{
"error": {
"code": "unsupported_model",
"message": "Unsupported modelKey: missing-model"
}
}
{
"error": {
"code": "model_unavailable",
"message": "Model is unavailable: veo-3.1"
}
}
{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid or expired"
}
}
{
"error": {
"code": "insufficient_credits",
"message": "Insufficient credits for video generation"
}
}
{
"error": {
"code": "task_not_found",
"message": "The requested task does not exist"
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the indicated interval."
}
}
{
"error": {
"code": "internal_error",
"message": "An internal error occurred"
}
}
Depending on the task type,
Texture filenames must match the references in the MTL.
output contains a models (3D), images, or videos array. Queued and processing entries also include generation parameters.
Authorizations
Query Parameters
Batch task ID returned by a generation request. Provide this or uuid, but not both.Example:
"normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d".Child image, video, or 3D UUID returned in the generation response. Provide this or id, but not both.Example:
"72e30159-a242-4491-a67c-2ad0cfc9efb6".curl --request GET \
--url 'https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d' \
--header 'Authorization: Bearer <token>'
import requests
response = requests.request(
"GET",
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
headers={
"Authorization": "Bearer <token>",
},
)
print(response.json())
const response = await fetch(
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
{
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
}
);
const data = await response.json();
console.log(data);
const response: Response = await fetch(
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
{
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
}
);
const data = await response.json();
console.log(data);
import java.net.URI;
import java.net.http.*;
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d"))
.header("Authorization", "Bearer <token>")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(
request,
HttpResponse.BodyHandlers.ofString()
);
System.out.println(response.body());
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest(
"GET",
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
nil,
)
req.Header.Set("Authorization", "Bearer <token>")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
bodyBytes, _ := io.ReadAll(resp.Body)
fmt.Println(string(bodyBytes))
}
require "net/http"
require "json"
uri = URI("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <token>"
response = Net::HTTP.start(
uri.hostname,
uri.port,
use_ssl: uri.scheme == "https"
) do |http|
http.request(request)
end
puts response.body
<?php
$ch = curl_init("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(
HttpMethod.Get,
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d"
);
request.Headers.TryAddWithoutValidation("Authorization", "Bearer <token>");
using var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Response
- 200
- 400
- 401
- 403
- 404
- 429
- 500
Task details
Batch task ID returned by a generation request.Example:
"normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d".Normalized task lifecycle status.Available options:
queued, processing, succeeded, failed.Current child image, video, or 3D task output, including entries that are still queued or processing.
Show child attributes
Show child attributes
3D child tasks and their current results.
Show Child attributes
Show Child attributes
Generated 3D child UUID, matching the child UUID in the creation response.
Primary model format, usually
glb for triangle models or obj for quad models. null until available.Temporary signed URLs for original generation files, unaffected by format conversions.
{} until available. Triangle models return glb; quad models return obj and an mtl when available.Show Child attributes
Show Child attributes
Returned only for textured quad models. Contains temporary signed URLs for available texture maps; missing types are omitted.
{} until maps are available.Mesh quality. Available options:
standard, high, extra_high. Text-to-3D, single-image-to-3D, and batch image-to-3D default to standard. Multi-view generation always uses high.Character pose. Available options:
auto, A-pose, T-pose. Text-to-3D and single-image-to-3D return the requested pose, defaulting to auto when omitted. Batch image-to-3D and multi-view generation return auto.Target polygon count used by the task, matching the requested
target_polycount or its default. Triangle standard supports 100,000–500,000 and defaults to 500,000; triangle high and extra_high support 500,000–1,000,000 and default to 1,000,000; quad supports 1,000–100,000 and defaults to 50,000. Triangle counts increase in steps of 1,000 and quad counts in steps of 100. Multi-view generation uses a high-quality triangle mesh and defaults to 500,000 polygons.Mesh topology, using the same values as the request parameter:
triangle or quad.Whether to generate textures, matching the requested
with_texture value.Whether to generate PBR materials, matching the requested
with_pbr value.Whether input-image enhancement was enabled, matching the requested
image_enhancement value. Defaults to false when omitted and is false for text-to-3D and multi-view generation.Generation mode for this model. Available options:
text_to_3d (text), image_to_3d (single image), batch_image_to_3d (batch images), multi_view_to_3d (multi-view images).Current status of this model. Available options:
queued, processing, succeeded, failed.All child image tasks and their current output information. url and format are null until a result file is available.
Show child attributes
Show child attributes
Temporary signed URL for downloading the generated image when available.
Generation mode used for this image.Available options:
text_to_image, image_to_image.Current status of this generated image.Available options:
queued, processing, succeeded, failed.Unix timestamp in seconds when this generated image was created.
All child video tasks and their current output information. url and format are null until a result file is available.
Show child attributes
Show child attributes
Generated video child UUID.Example:
"72e30159-a242-4491-a67c-2ad0cfc9efb6".Temporary signed URL for downloading the generated video when available.
Temporary signed URL for the generated video’s final frame. Returns
null if return_last_frame is disabled, the frame is unavailable, or the video has not passed moderation.Generated video duration in seconds when available.Required range:
0 <= x <= infinity.Generated video resolution when available, such as 720p.Example:
"720p".Generated video aspect ratio when available, such as 16:9.Example:
"16:9".Generation mode used for this video.Available options:
text_to_video, first_frame_image_to_video, first_last_frame_image_to_video, reference_to_video.Current status of this generated video.Available options:
queued, processing, succeeded, failed.Unix timestamp in seconds when this generated video was created.
Image, video, or 3D generation mode used by the task.Available options:
text_to_image, image_to_image, text_to_video, first_frame_image_to_video, first_last_frame_image_to_video, reference_to_video, text_to_3d, image_to_3d, batch_image_to_3d, multi_view_to_3d.Image, video, or 3D generation model used by the task.Available options:
openai/gpt-image-2, google/nano-banana-pro, bytedance/seedream-4.5, black-forest-labs/flux-2-pro, google/nano-banana-2-lite, bytedance/seedance-2.0, bytedance/seedance-2.0-fast, google/veo-3.1, xai/grok-imagine, kuaishou/kling-3.0, dreamtech/neural4d-2.5.Error details when the task fails.
Invalid request
Structured error details.
Show child attributes
Show child attributes
Human-readable explanation of the error.Example:
"prompt is required and must be a non-empty string".Authentication failed
Structured error details.
Show child attributes
Show child attributes
Human-readable explanation of the error.Example:
"prompt is required and must be a non-empty string".The authenticated user cannot access this resource or has insufficient credits
Structured error details.
Show child attributes
Show child attributes
Human-readable explanation of the error.Example:
"prompt is required and must be a non-empty string".The requested resource was not found
Structured error details.
Show child attributes
Show child attributes
Human-readable explanation of the error.Example:
"prompt is required and must be a non-empty string".Request or quota limit exceeded
Structured error details.
Show child attributes
Show child attributes
Human-readable explanation of the error.Example:
"prompt is required and must be a non-empty string".Internal or upstream service error
Structured error details.
Show child attributes
Show child attributes
Human-readable explanation of the error.Example:
"prompt is required and must be a non-empty string".3D rendering resources
Examples with all resources available, excluding thumbnails. Actual file counts depend on which files have been generated.| Model type | model_urls | texture_urls | Example file count |
|---|---|---|---|
| Triangle mesh, textured model, or PBR model | glb | Omitted; materials and textures load with the GLB | 1 |
| Untextured quad mesh | obj | Omitted | 1 |
| Quad model with ordinary textures | obj, mtl | albedo | 3 |
| Quad PBR model | obj, mtl | albedo, normal, roughness, metallic | 6 |
{
"id": "normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_3d",
"model": "dreamtech/neural4d-2.5",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 30
},
"output": {
"models": [
{
"uuid": "72e30159-a242-4491-a67c-2ad0cfc9efb6",
"format": "glb",
"model_urls": {
"glb": "https://s3.neural4d.com/results/model.glb"
},
"thumbnail_urls": {
"front": "https://s3.neural4d.com/results/t1.png"
},
"mesh_quality": "high",
"pose": "T-pose",
"target_polycount": 1000000,
"topology": "triangle",
"with_texture": true,
"with_pbr": true,
"image_enhancement": true,
"mode": "image_to_3d",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-3d-d60fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_3d",
"model": "dreamtech/neural4d-2.5",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 30
},
"output": {
"models": [
{
"uuid": "83f41260-b353-45a2-92c8-3be1dfe0a067",
"format": "obj",
"model_urls": {
"obj": "https://s3.neural4d.com/results/quad/model.obj",
"mtl": "https://s3.neural4d.com/results/quad/model.mtl"
},
"thumbnail_urls": {
"front": "https://s3.neural4d.com/results/quad/front.png"
},
"texture_urls": {
"albedo": "https://s3.neural4d.com/results/quad/albedo.png",
"normal": "https://s3.neural4d.com/results/quad/normal.png",
"roughness": "https://s3.neural4d.com/results/quad/roughness.png",
"metallic": "https://s3.neural4d.com/results/quad/metallic.png"
},
"mesh_quality": "standard",
"pose": "auto",
"target_polycount": 50000,
"topology": "quad",
"with_texture": true,
"with_pbr": true,
"image_enhancement": true,
"mode": "image_to_3d",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-image-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_image",
"model": "openai/gpt-image-2",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 13
},
"output": {
"images": [
{
"uuid": "c6f5dc4e-61ac-4694-9a8b-6a95f3ac4457",
"url": "https://s3.neural4d.com/results/image.png",
"format": "png",
"resolution": "2K",
"aspect_ratio": "1:1",
"mode": "image_to_image",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-video-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "first_frame_image_to_video",
"model": "bytedance/seedance-2.0-fast",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 26
},
"output": {
"videos": [
{
"uuid": "7d1fa4bb-41e6-4a5d-88d8-1851f5342e87",
"url": "https://s3.neural4d.com/results/video.mp4",
"last_frame_url": "https://s3.neural4d.com/results/video-last-frame.jpg?signature=example",
"format": "mp4",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"has_audio": true,
"mode": "first_frame_image_to_video",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"error": {
"code": "invalid_prompt",
"message": "prompt is required and must be a non-empty string"
}
}
{
"error": {
"code": "unsupported_model",
"message": "Unsupported modelKey: missing-model"
}
}
{
"error": {
"code": "model_unavailable",
"message": "Model is unavailable: veo-3.1"
}
}
{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid or expired"
}
}
{
"error": {
"code": "insufficient_credits",
"message": "Insufficient credits for video generation"
}
}
{
"error": {
"code": "task_not_found",
"message": "The requested task does not exist"
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the indicated interval."
}
}
{
"error": {
"code": "internal_error",
"message": "An internal error occurred"
}
}
⌘I
curl --request GET \
--url 'https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d' \
--header 'Authorization: Bearer <token>'
import requests
response = requests.request(
"GET",
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
headers={
"Authorization": "Bearer <token>",
},
)
print(response.json())
const response = await fetch(
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
{
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
}
);
const data = await response.json();
console.log(data);
const response: Response = await fetch(
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
{
method: "GET",
headers: {
"Authorization": "Bearer <token>"
}
}
);
const data = await response.json();
console.log(data);
import java.net.URI;
import java.net.http.*;
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d"))
.header("Authorization", "Bearer <token>")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(
request,
HttpResponse.BodyHandlers.ofString()
);
System.out.println(response.body());
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest(
"GET",
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
nil,
)
req.Header.Set("Authorization", "Bearer <token>")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
bodyBytes, _ := io.ReadAll(resp.Body)
fmt.Println(string(bodyBytes))
}
require "net/http"
require "json"
uri = URI("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d")
request = Net::HTTP::Get.new(uri)
request["Authorization"] = "Bearer <token>"
response = Net::HTTP.start(
uri.hostname,
uri.port,
use_ssl: uri.scheme == "https"
) do |http|
http.request(request)
end
puts response.body
<?php
$ch = curl_init("https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(
HttpMethod.Get,
"https://api.neural4d.com/openapi/v1/tasks/task-info?id=normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d"
);
request.Headers.TryAddWithoutValidation("Authorization", "Bearer <token>");
using var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());
{
"id": "normal-3d-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_3d",
"model": "dreamtech/neural4d-2.5",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 30
},
"output": {
"models": [
{
"uuid": "72e30159-a242-4491-a67c-2ad0cfc9efb6",
"format": "glb",
"model_urls": {
"glb": "https://s3.neural4d.com/results/model.glb"
},
"thumbnail_urls": {
"front": "https://s3.neural4d.com/results/t1.png"
},
"mesh_quality": "high",
"pose": "T-pose",
"target_polycount": 1000000,
"topology": "triangle",
"with_texture": true,
"with_pbr": true,
"image_enhancement": true,
"mode": "image_to_3d",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-3d-d60fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_3d",
"model": "dreamtech/neural4d-2.5",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 30
},
"output": {
"models": [
{
"uuid": "83f41260-b353-45a2-92c8-3be1dfe0a067",
"format": "obj",
"model_urls": {
"obj": "https://s3.neural4d.com/results/quad/model.obj",
"mtl": "https://s3.neural4d.com/results/quad/model.mtl"
},
"thumbnail_urls": {
"front": "https://s3.neural4d.com/results/quad/front.png"
},
"texture_urls": {
"albedo": "https://s3.neural4d.com/results/quad/albedo.png",
"normal": "https://s3.neural4d.com/results/quad/normal.png",
"roughness": "https://s3.neural4d.com/results/quad/roughness.png",
"metallic": "https://s3.neural4d.com/results/quad/metallic.png"
},
"mesh_quality": "standard",
"pose": "auto",
"target_polycount": 50000,
"topology": "quad",
"with_texture": true,
"with_pbr": true,
"image_enhancement": true,
"mode": "image_to_3d",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-image-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "image_to_image",
"model": "openai/gpt-image-2",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 13
},
"output": {
"images": [
{
"uuid": "c6f5dc4e-61ac-4694-9a8b-6a95f3ac4457",
"url": "https://s3.neural4d.com/results/image.png",
"format": "png",
"resolution": "2K",
"aspect_ratio": "1:1",
"mode": "image_to_image",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"id": "normal-video-c50fe63e-699d-4d61-93f5-2099ab159d6d",
"status": "succeeded",
"mode": "first_frame_image_to_video",
"model": "bytedance/seedance-2.0-fast",
"created_at": 1784044800,
"updated_at": 1784044842,
"usage": {
"credits": 26
},
"output": {
"videos": [
{
"uuid": "7d1fa4bb-41e6-4a5d-88d8-1851f5342e87",
"url": "https://s3.neural4d.com/results/video.mp4",
"last_frame_url": "https://s3.neural4d.com/results/video-last-frame.jpg?signature=example",
"format": "mp4",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9",
"has_audio": true,
"mode": "first_frame_image_to_video",
"status": "succeeded",
"created_at": 1784044800,
"updated_at": 1784044842
}
]
}
}
{
"error": {
"code": "invalid_prompt",
"message": "prompt is required and must be a non-empty string"
}
}
{
"error": {
"code": "unsupported_model",
"message": "Unsupported modelKey: missing-model"
}
}
{
"error": {
"code": "model_unavailable",
"message": "Model is unavailable: veo-3.1"
}
}
{
"error": {
"code": "invalid_api_key",
"message": "The API key is invalid or expired"
}
}
{
"error": {
"code": "insufficient_credits",
"message": "Insufficient credits for video generation"
}
}
{
"error": {
"code": "task_not_found",
"message": "The requested task does not exist"
}
}
{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests. Retry after the indicated interval."
}
}
{
"error": {
"code": "internal_error",
"message": "An internal error occurred"
}
}