File size: 800 Bytes
9853396
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
### Image Generation
POST http://localhost:8090/v1/chat/completions
Content-Type: application/json
Authorization: Bearer {{AXONHUB_API_KEY}}

{
    "model": "cogview-3-flash",
    "messages": [
        {
            "role": "user",
            "content": "Generate an image of a cat."
        }
    ],
    "tools": [
        {
            "type": "image_generation",
            "image_generation": {
                "model": "gpt-image-1",
                "size": "1024x1024",
                "quality": "low"
            }
        }
    ],
    "modalities": ["text", "image"]
}
    

### Image Generation with Image
POST http://localhost:8090/v1/chat/completions
Content-Type: application/json
Authorization: Bearer {{AXONHUB_API_KEY}}

< ./edit_image.json