API do Gemini Omni Flash 1.1 Edit
Gere vídeos com o Gemini Omni Flash 1.1 Edit pelo MartLLM.
Ver mais
Criado por Google. Modelo de Google. O MartLLM não executa este modelo. Aqui, os vendedores servem o modelo pelas próprias contas nos provedores.
Requisição
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-1-1-video-to-video",
"video_url": "https://example.com/clip.mp4"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Defina UBERLLM_API_KEY com sua chave. Consulte /v1/video/generations/<job id> a cada 5 segundos até status ser "succeeded" e então baixe o arquivo com sua chave. Uma tarefa que falha diz o motivo e não custa nada. Guia completo da API
Opções
- Tarefas
- Altera um vídeo que você envia
- Unidade de cobrança
- por segundo do vídeo enviado
- ID do modelo
google/gemini-omni-flash-1-1-video-to-video
Experimente Gemini Omni Flash 1.1 Edit
Configurações
Seu vídeo
MP4 ou MOV. Do seu computador até 10 MB; para um vídeo maior (até 50 MB), cole um link.
A mesma requisição das configurações à esquerda, pronta para copiar.
curl https://api.martllm.com/v1/video/generations \
-H "Authorization: Bearer $UBERLLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-omni-flash-1-1-video-to-video"
}'
# → {"id": "<job id>", "status": "queued", "poll_url": "/v1/video/generations/<job id>"}Parâmetros da API de Gemini Omni Flash 1.1 Edit
| Parâmetro | Tipo | O que faz |
|---|---|---|
| model | google/gemini-omni-flash-1-1-video-to-video | Obrigatório |
| video_url | string | Obrigatório. The video to change: an https:// link, a data: URI or a file id from POST /v1/files. MP4 or MOV, up to 50 MB. Billed per second of this video. |
Lido de GET https://api.martllm.com/v1/models/google/gemini-omni-flash-1-1-video-to-video: as mesmas regras que a API confere em toda requisição.
Modelos Gemini comparados
| Modelo | ID do modelo | A partir de (por segundo) | Até | Mais longo |
|---|---|---|---|---|
| Gemini Omni Flash 1.1 Edit | google/gemini-omni-flash-1-1-video-to-video | |||
| Gemini Omni Flash (reference-to-video) | google/gemini-omni-flash-reference-to-video | $0.089 | 10 s | |
| Gemini Omni Flash (image-to-video) | google/gemini-omni-flash-image-to-video | $0.0882 | 10 s | |
| Gemini Omni Flash 1.1 Reference-to-Video | venice/gemini-omni-flash-1-1-reference-to-video | $0.0299 | 4k | 10 s |
| Gemini Omni Flash 1.1 | google/gemini-omni-flash-1-1 | $0.0243 | 4k | 10 s |
| Gemini Omni Flash 1.2 | google/gemini-omni-flash-1-2 | $0.0162 | 4k | 15 s |
| Gemini Omni 1.2 Flash Video Edit | google/gemini-omni-flash-1-2-video-to-video | |||
| Gemini Omni Flash Video Edit | google/gemini-omni-flash-video-to-video |
Perguntas frequentes sobre a API do Gemini Omni Flash 1.1 Edit
Quanto custa o Gemini Omni Flash 1.1 Edit?
O Gemini Omni Flash 1.1 Edit é cobrado pelo preço mostrado, sem nenhuma taxa do MartLLM por cima. Uma requisição que falha não custa nada.
Como gerar um vídeo com o Gemini Omni Flash 1.1 Edit?
Envie um POST para https://api.martllm.com/v1/video/generations com a sua chave de API do MartLLM, o modelo "google/gemini-omni-flash-1-1-video-to-video" e o seu vídeo como "video_url" (um link https://, uma URI data: ou um ID de arquivo de /v1/files; MP4 ou MOV, com até 50 MB). A cobrança é feita por segundo de vídeo. A requisição retorna um ID da tarefa; consulte https://api.martllm.com/v1/video/generations/<job id> até o status mudar para "succeeded" e depois baixe o resultado em https://api.martllm.com/v1/media/artifacts/<job id>/0.