Base URL
Use this host for every endpoint in this reference.
https://api.juhenextvip.comFor Developers
Use the JuheNext API through OpenAI-, Anthropic-, or Gemini-compatible formats. This reference covers authentication, parameters, request examples, and response structures for every supported endpoint group.
Quick Start
Use this host for every endpoint in this reference.
https://api.juhenextvip.comSend your JuheNext API Key as a Bearer token. Some Gemini-compatible clients may use x-goog-api-key instead.
Authorization: Bearer <YOUR_API_KEY>Keep production Keys in server-side environment variables. Never expose them in browser code or a public repository.
OpenAI, Responses, Anthropic Messages, and Gemini-compatible interfaces.
/v1/chat/completionsCreates a model response from a conversation. Streaming and tool calling are supported by compatible models.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Exact model ID from the Models page. |
messagesRequired | array | body | Conversation messages in chronological order. |
max_completion_tokensOptional | integer | body | Maximum number of generated tokens. |
reasoning_effortOptional | string | body | Reasoning effort for supported reasoning models.
|
temperatureOptional | number | body | Sampling temperature. Support varies by model. |
streamOptional | boolean | body | Returns Server-Sent Events when true. |
toolsOptional | array | body | Tools or functions available to the model. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/chat/completions' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-5.6-luna",
"messages": [
{
"role": "developer",
"content": "You are a helpful assistant."
},
{
"role": "user",
"content": "Hello!"
}
]
}'{
"id": "chatcmpl_...",
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 24,
"completion_tokens": 9,
"total_tokens": 33
}
}/v1/responsesCreates a response using the OpenAI Responses format, including instructions, reasoning, and tools.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Exact model ID. |
inputRequired | string | array | body | Text or structured input items. |
instructionsOptional | string | body | System-level instructions for the response. |
max_output_tokensOptional | integer | body | Maximum number of output tokens. |
reasoningOptional | object | body | Reasoning configuration for supported models. |
streamOptional | boolean | body | Streams response events when true. |
toolsOptional | array | body | Tools available during the response. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/responses' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-5.6-luna",
"instructions": "Answer clearly and briefly.",
"input": "Explain what an API gateway does."
}'{
"id": "resp_...",
"object": "response",
"status": "completed",
"output": [
{
"type": "message",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "An API gateway is a single entry point..."
}
]
}
]
}/v1/messagesCreates a message using the Anthropic-compatible Messages format.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Exact compatible model ID. |
messagesRequired | array | body | Input messages for the conversation. |
max_tokensRequired | integer | body | Maximum number of generated tokens. |
streamOptional | boolean | body | Streams message events when true. |
thinkingOptional | object | body | Extended-thinking configuration for supported models. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/messages' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "claude-sonnet-5",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Summarize the benefits of caching."
}
]
}'{
"id": "msg_...",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Caching reduces latency and upstream load..."
}
],
"stop_reason": "end_turn"
}/v1beta/models/{model}:{GenerateContentType}Creates standard or streaming content using the Gemini-compatible interface.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | path | Gemini-compatible model ID. |
GenerateContentTypeRequired | string | path | Generation method appended after the model name.
|
contentsRequired | array | body | Conversation content and parts. |
generationConfigOptional | object | body | Optional sampling and output configuration. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1beta/models/gemini-3.5-flash:generateContent' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"role": "user",
"parts": [
{ "text": "Explain edge computing in one paragraph." }
]
}
]
}'{
"candidates": [
{
"content": {
"role": "model",
"parts": [
{ "text": "Edge computing processes data closer..." }
]
},
"finishReason": "STOP"
}
]
}Generate and edit images with OpenAI- and Gemini-compatible formats.
/v1/images/generationsGenerates one or more images from a text prompt.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Image-generation model ID. |
promptRequired | string | body | Description of the image to generate. |
sizeOptional | string | body | Preset size or custom WxH size supported by the model. |
nOptional | integer | body | Number of images to generate when supported. |
response_formatOptional | string | body | Image return format when supported.
|
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "gpt-image-2-c",
"prompt": "A flying white rabbit in a futuristic sci-fi style",
"size": "1024x1536"
}'{
"created": 1785859200,
"data": [
{
"url": "https://example.com/generated-image.png"
}
]
}/v1/images/editsEdits an uploaded image according to a text prompt.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Image-edit model ID. |
promptRequired | string | body | Instructions describing the desired edit. |
imageRequired | file | body | Source image file. |
sizeOptional | string | body | Requested output size when supported. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/edits' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--form 'model=gpt-image-2-c' \
--form 'prompt=Transform the image into a Studio Ghibli-inspired style' \
--form 'image=@/path/to/image.png' \
--form 'size=1024x1536'{
"created": 1785859200,
"data": [
{
"url": "https://example.com/edited-image.png"
}
]
}/v1beta/models/{model}:{GenerateContentType}Generates image content using the Gemini-compatible multimodal format.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | path | Compatible image model ID. |
contentsRequired | array | body | Prompt and optional multimodal input parts. |
generationConfigOptional | object | body | Output and generation options. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1beta/models/gemini-3.1-flash-image:generateContent' \
--header 'x-goog-api-key: <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"contents": [
{
"parts": [
{ "text": "Create a minimal product photo of a glass teapot." }
]
}
]
}'{
"candidates": [
{
"content": {
"parts": [
{
"inlineData": {
"mimeType": "image/png",
"data": "<BASE64_IMAGE_DATA>"
}
}
]
}
}
]
}/v1/images/generationsGenerates Grok images with aspect-ratio, resolution, and response-format controls.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Grok image model ID. |
promptRequired | string | body | Image prompt. |
aspect_ratioOptional | string | body | Requested aspect ratio. |
nOptional | integer | body | Number of images. |
resolutionOptional | string | body | Output resolution.
|
response_formatOptional | string | body | Image return format.
|
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine-image",
"prompt": "A quiet futuristic train station at blue hour",
"aspect_ratio": "16:9",
"resolution": "2k",
"response_format": "url"
}'{
"created": 1785859200,
"data": [
{ "url": "https://example.com/grok-image.png" }
]
}/v1/images/editsEdits one or more source images with a Grok-compatible image model.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Grok image-edit model ID. |
promptRequired | string | body | Editing instructions. |
image / imagesRequired | file | array | body | One source image or multiple source images. |
response_formatOptional | string | body | Image return format.
|
curl --request POST \
--url 'https://api.juhenextvip.com/v1/images/edits' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--form 'model=grok-imagine-image' \
--form 'prompt=Replace the background with a clean studio setting' \
--form 'image=@/path/to/source.png'{
"created": 1785859200,
"data": [
{ "url": "https://example.com/grok-edited-image.png" }
]
}Create asynchronous video tasks and retrieve their status and result.
/v1/videosCreates an asynchronous Grok video-generation task.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Video-generation model ID. |
promptRequired | string | body | Description of the requested video. |
durationOptional | integer | body | Requested duration in seconds. |
aspect_ratioOptional | string | body | Requested aspect ratio. |
resolutionOptional | string | body | Output resolution.
|
curl --request POST \
--url 'https://api.juhenextvip.com/v1/videos' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine-video",
"prompt": "A serene lake at sunrise with mist rolling over the water",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "720p"
}'{
"id": "task_...",
"object": "video",
"status": "queued"
}/v1/videos/{task_id}Retrieves the current status and result of a video task.
| Name | Type | Location | Description |
|---|---|---|---|
task_idRequired | string | path | Public task ID returned by the create request. |
curl --request GET \
--url 'https://api.juhenextvip.com/v1/videos/task_...' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"id": "task_...",
"object": "video",
"status": "completed",
"url": "https://example.com/generated-video.mp4"
}Review reusable media assets and create Seedance 2.0 video tasks.
/v1/video/generationsSubmits one image, audio, or video URL for reusable-asset review.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Review model matching the media type.
|
promptRequired | string | body | Short description of the asset. |
metadata.contentRequired | array | body | Exactly one media item using image_url, audio_url, or video_url. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/video/generations' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-review-image",
"prompt": "Review this character reference image",
"metadata": {
"content": [
{
"type": "image_url",
"image_url": {
"url": "https://example.com/reference.png"
}
}
]
}
}'{
"id": "task_...",
"status": "queued",
"model": "seedance-review-image"
}/v1/video/generations/{task_id}Retrieves a material-review result and its reusable asset identifier.
| Name | Type | Location | Description |
|---|---|---|---|
task_idRequired | string | path | Public review task ID. |
curl --request GET \
--url 'https://api.juhenextvip.com/v1/video/generations/task_...' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"id": "task_...",
"status": "completed",
"asset": "asset://asset-..."
}/v1/video/generationsCreates a Seedance 2.0 asynchronous video-generation task.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Seedance video model ID.
|
promptRequired | string | body | Video prompt. |
secondsRequired | string | body | Duration as a JSON string from 4 to 15. |
imagesOptional | array | body | Optional image references. |
metadata.resolutionOptional | string | body | Output resolution; fast and mini support 480p and 720p.
|
metadata.ratioOptional | string | body | Output aspect ratio.
|
metadata.contentOptional | array | body | Reviewed asset references used by the task. |
metadata.callback_urlOptional | string | body | HTTPS callback URL for status updates. |
metadata.generate_audioOptional | boolean | body | Whether to generate audio when supported. |
metadata.service_tierOptional | string | body | Task service tier.
|
metadata.return_last_frameOptional | boolean | body | Returns the last frame when supported. |
metadata.seedOptional | integer | body | Generation seed; use -1 for a random seed. |
metadata.watermarkOptional | boolean | body | Whether to add a watermark. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/video/generations' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2-0",
"prompt": "Morning clouds drift slowly across snow-covered mountains as the camera moves forward smoothly",
"seconds": "5",
"metadata": {
"resolution": "720p",
"ratio": "16:9",
"generate_audio": true,
"seed": -1,
"watermark": false
}
}'{
"id": "task_...",
"status": "queued",
"model": "seedance-2-0"
}/v1/video/generations/{task_id}Retrieves a Seedance task status and the generated video result.
| Name | Type | Location | Description |
|---|---|---|---|
task_idRequired | string | path | Public task_... ID returned by JuheNext. |
curl --request GET \
--url 'https://api.juhenextvip.com/v1/video/generations/task_...' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"id": "task_...",
"status": "completed",
"video_url": "https://example.com/seedance-video.mp4"
}Create embeddings, list available models, and inspect API Key allowance.
/v1/embeddingsCreates a vector representation of text input.
| Name | Type | Location | Description |
|---|---|---|---|
modelRequired | string | body | Embedding model ID. |
inputRequired | string | array | body | Text or array of text to embed. |
encoding_formatOptional | string | body | Vector encoding format.
|
dimensionsOptional | integer | body | Requested vector dimensions when supported. |
curl --request POST \
--url 'https://api.juhenextvip.com/v1/embeddings' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "text-embedding-3-small",
"input": "JuheNext makes model APIs easier to use.",
"encoding_format": "float"
}'{
"object": "list",
"data": [
{
"object": "embedding",
"index": 0,
"embedding": [0.0123, -0.0456, 0.0789]
}
],
"model": "text-embedding-3-small"
}/v1/modelsLists model IDs currently available to the supplied API Key.
curl --request GET \
--url 'https://api.juhenextvip.com/v1/models' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"object": "list",
"data": [
{
"id": "gpt-5.6-luna",
"object": "model",
"owned_by": "provider"
}
]
}/api/usage/tokenRetrieves allowance and usage totals for the supplied API Key.
curl --request GET \
--url 'https://api.juhenextvip.com/api/usage/token' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"data": {
"name": "JuheNext Key",
"expires_at": -1,
"total_granted": 5000000,
"total_used": 1250000,
"total_available": 3750000,
"unlimited_quota": false
}
}No API documentation matches your search.