HyperGPT
  • Overview
    • 🟣HyperGPT
    • ⛓️AI & Blockchain
    • 🛠️Problems & Solutions
    • 🤖HyperSolutions
      • HyperX Pad
      • HyperAgent
      • HyperStore
      • HyperSDK
      • HyperNFT
    • 👾Products
    • ⚙️HyperSDK
      • 1. User
        • 1.1 How to Get API Key
        • 1.2 Get Token
        • 1.3 Get Balance
      • 2. AI
        • 2.1 Hyper Portraits
        • 2.2 Hyper Art
        • 2.3 Hyper Ocr
        • 2.4 Hyper Extract
        • 2.5 Hyper Contracts
        • 2.6 Hyper Post
        • 2.7 Hyper Code
        • 2.8 Hyper Chat
        • 2.9 Hyper Pdf
        • 2.10 Hyper Images
    • 🧑‍🔬Incubation
      • 🪐Pluton
    • 🌎Market
    • 🎯Roadmap
    • 👋Contact
    • 🏳️Disclaimer
  • HyperBUIDL Program
    • 🚧HyperBUIDL | Phase #1
  • Ambassador Program
    • 🥇HyperGPT Presents the Ambassador Program
  • HyperDAO
    • 📥About HyperDAO
    • 🤖HyperDAO Roles
  • $HGPT Token
    • 🪙Token Utility
    • 📈$HGPT Tokenomics
      • Token Sale (IDO)
    • 🔥Burn Mechanism
    • 🧑‍🌾Staking & Farming
    • 💰Buy $HGPT Token
    • 🛡️Audit
  • Airdrop Campaigns
    • 🏆HyperGPT Zealy Campaign - $10,000 - [Ended]
    • 🔥Airdrop Campaign - $20,000 - HyperGPT [Ended]
Powered by GitBook
On this page
  1. Overview
  2. HyperSDK
  3. 2. AI

2.2 Hyper Art

The HyperArt endpoint generates images based on an uploaded image and a provided text query using the "HyperArt" model. Users must have sufficient credits, which are deducted upon successful image gen

Method: POST

https://sdk.hypergpt.ai/hyperArt

Headers:

Bearer Token

new_user_token

Data :

  • samples (int): The number of image samples to generate.

  • query (str): The text query used to guide the image generation.

  • step (int): The number of steps for the image generation process.

Files :

file (UploadFile): The image file to be used as the base for generation.

Return Value:

  • result (list or dict): The generated images or an error message if an exception occurs.

Example Request:

headers = {
    "Authorization": bearer_token
}

data = {
    "query": query,
    "samples": samples,
    "step": step
}

files = {
    "file": (file.filename, file.file, file.content_type)
}

response = requests.post(
    "https://whale-app-2-ojzej.ondigitalocean.app/hyperArt",
    headers=headers,
    data=data,
    files=files 
)

return response.json()

Example Response (Success):

{
  "datam": [
    "https://example.com/image1.png"
  ]
}

Example Response (File Upload Error):

{
    "message": "There was an error uploading the file"
}

Example Response (Error):

{
    "detail": "Credit not enough"
}
Previous2.1 Hyper PortraitsNext2.3 Hyper Ocr

Last updated 4 months ago

⚙️