πŸ–ΌοΈImage Generations

Ever wanted to generate you with a girl for the first time? Then this is just for you.


import requests

url = "https://api.shard-ai.xyz/v1/images/generations"

data = {
    "model": "dall-e-3", # Image model to use
    "prompt": 'cat' # What to make
}
headers= {
    "Authorization": "Bearer shard-xxx" # Your api key here.
}

r = requests.post(url, headers=headers, json=data)
print(r.text)

{
    "created": 1714018966,
    "data": [
        {
            "url": "https://oaidalleapiprodscus.blob.core.windows.net/private/org-euc5SXRBt8KFbPN02ZZcmgNv/user-tZtEPE4MMAX525WzOi4NT8Xb/img-THr2iVaq8fsQaoABIR0NP2o3.png?st=2024-04-25T03%3A22%3A46Z&se=2024-04-25T05%3A22%3A46Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2024-04-24T19%3A14%3A28Z&ske=2024-04-25T19%3A14%3A28Z&sks=b&skv=2021-08-06&sig=NUODtb28vLRh0qjh73/rNZTpOYfIgCF%2Bm/RQdcfMOf8%3D"
        }
    ]
}

Last updated