POST
javascript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 const axios = require('axios'); const api_key = "YOUR API-KEY"; const url = "https://api.segmind.com/v1/veo-3"; const data = { "seed": 0, "prompt": " A medium shot frames an old sailor, his knitted blue sailor hat casting a shadow over his eyes, a thick grey beard obscuring his chin. He holds his pipe in one hand, gesturing with it towards the churning, grey sea beyond the ship's railing. \"This ocean, it's a force, a wild, untamed might. And she commands your awe, with every breaking light\"", "generate_audio": true }; (async function() { try { const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } }); console.log(response.data); } catch (error) { console.error('Error:', error.response.data); } })();
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


seedint ( default: 1 )

A random seed ensures consistent outputs. Use 0 for random or a specific number for fixed results.


promptstr *

The prompt defines the video content. Use detailed descriptions for specific scenes or brief prompts for abstract ideas.


generate_audioboolean ( default: true )

Generate Audio.


aspect_ratioenum:str ( default: 1 )

Aspect ratio (16:9, 4:3, 1:1, 3:4, 9:16)

Allowed values:

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.

Leveraging Veo 3 for Enhanced Video Creation

Veo 3, the latest offering from Google DeepMind, represents a significant leap in generative video AI technology. Its unique features, such as advanced text-to-video generation and native audio synthesis, provide developers and creators with the tools needed to push the boundaries of digital content creation. Here’s how you can effectively utilize Veo 3 to maximize your creative endeavors.

Unlocking Veo 3's Capabilities

Developers can tap into Veo 3's sophisticated capabilities by crafting detailed text prompts to fine-tune visual and auditory outputs. It is critical to specify elements such as visual styles, environments, and character actions for precise control over the narrative flow and consistency across scenes.

For creators, Veo 3 stands as an invaluable tool in crafting cinematic-quality videos. By leveraging its 4K visual output and realistic physics simulation, creators can develop visually stunning content with lifelike motion and textures. This makes it an ideal solution for filmmakers seeking to prototype scenes or bring storyboards to life with synchronous audiovisual elements.

Executives aiming to communicate complex ideas can utilize Veo 3 to develop compelling educational materials and sophisticated commercials that clearly convey brand messaging with precise visual and auditory alignment.

Practical Application Tips

  1. Prompt Design: Employ detailed and structured prompts to guide Veo 3 in producing coherent and visually consistent narratives.

  2. Iterative Refinement: Review and refine initial outputs by tweaking prompts and leveraging the model’s strengths to address any deficiencies or inconsistencies.

  3. Post-Production Synergy: Combine Veo 3 outputs with post-production tools to enhance video quality and achieve the desired immersive experience.