1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const axios = require('axios');
const api_key = "YOUR API KEY";
const url = "https://api.segmind.com/workflows/662b82e80b84ed5b0f58eebd-v1";
const data = {
input_2d_image: "publicly accessible image link"
};
axios.post(url, data, {
headers: {
'x-api-key': api_key,
'Content-Type': 'application/json'
}
}).then((response) => {
console.log(response.data);
});
1
2
3
4
5
{
"poll_url": "<base_url>/requests/<some_request_id>",
"request_id": "some_request_id",
"status": "QUEUED"
}
You can poll the above link to get the status and output of your request.
1
2
3
{
"output_3d_image": "image in URL Format"
}
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
Transform 2D flat cartoon images into vibrant 3D representations with the "2D Flat Image to 3D Image Using Fooocus" workflow. This advanced process utilizes cutting-edge technology to convert simple 2D visuals into dynamic 3D models, offering a new dimension to your artistic and design endeavors.
This workflow involves a multi-step process to ensure effective conversion from 2D to 3D:
Input via LLava: Initially, a 2D flat cartoon image is provided to the LLava model. This model generates a detailed text prompt intended for the Fooocus system, setting up the base parameters for conversion.
Image Processing in Fooocus: The same original 2D image is then utilized as input in the Fooocus model, where specific aspects such as face and pose details are analyzed and integrated.
3D Rendering Output: Fooocus processes these inputs and outputs a 3D render, effectively transforming the flat image into a three-dimensional model that maintains the visual essence of the original while adding depth and dimensionality.
Upload the Image: Start by uploading your desired 2D flat cartoon image to the workflow interface.
Automatic Conversion: The workflow automatically processes the image through LLava and Fooocus, generating a 3D render based on the input parameters.
Review the 3D Output: Once processing is complete, review the 3D image to ensure it meets your requirements and has effectively captured the intended details.
Animation and Game Development: Create 3D characters and scenes from 2D original artwork, enhancing their application in animations or interactive media.
Digital Art and Illustration: Transition static illustrations into engaging 3D art pieces, broadening artistic expression and appeal.
Education and Demonstrations: Develop 3D models for educational purposes, allowing for comprehensive visual demonstrations in teaching materials or presentations.
Product Design and Marketing: Convert 2D product designs into 3D models for enhanced marketing displays and visualization, aiding in consumer engagement and product innovation.