Gemma 3 4b 비전

모델

사용자 정의 - HTTP POST

URL:

  • http://127.0.0.1:1234/v1/chat/completions

콘텐츠 유형:

  • application/json

헤더:

  • {}

본문:

{
  "model": "nanonets-ocr-s",
  "messages": [
    {
      "role": "system", "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": [        
        {
          "type": "image_url",
          "image_url": {
            "url": "data:image/jpeg;base64,$IMAGE_BASE64"
          }
        },
        { 
          "type": "text", 
          "text": "Extract the text from the image above as if you were reading it naturally. Return only valid words and complete sentences."
        }
      ]
    }
  ],
  "stream": false
}

응답 유형:

  • JSON

응답 쿼리:

  • choices[0].message.content