Resource based authorization

Resource based authorization - DrawGPT
## Resource based authorization ### Usecase A user bob has recently registered to a portal. Uncle bob wants to add address information for the account. The actions that uncle bob wants to do in the usecase are view account, view address and manage addre
Bot
Uncle Bob: "Bob, let's address it with a burst of energy and a blast of enthusiasm!" User Bob: "Definitely, Uncle Bob! We

Javascript Code

                        // Resource based authorization

// Usecase: Uncle Bob and User Bob

// Uncle Bob wants to add address information for the account

// Uncle Bob can perform the following actions:
// 1. View Account
// 2. View Address
// 3. Manage Address

// Uncle Bob is a fun-loving uncle who is always ready to help!


// Let's start by drawing Uncle Bob

// Uncle Bob's head
ctx.beginPath();
ctx.arc(256, 256, 100, 0, 2 * Math.PI);
ctx.fillStyle = '#FFD700'; // Uncle Bob's golden head
ctx.fill();

// Uncle Bob's eyes
ctx.beginPath();
ctx.arc(226, 236, 20, 0, 2 * Math.PI);
ctx.fillStyle = '#000000'; // Uncle Bob's dark eyes
ctx.fill();

ctx.beginPath();
ctx.arc(286, 236, 20, 0, 2 * Math.PI);
ctx.fillStyle = '#000000'; // Uncle Bob's dark eyes
ctx.fill();

// Uncle Bob's smile
ctx.beginPath();
ctx.arc(256, 296, 60, 0, Math.PI);
ctx.lineWidth = 10;
ctx.strokeStyle = '#FF0000'; // Uncle Bob's red smile
ctx.stroke();

// Uncle Bob's body
ctx.beginPath();
ctx.moveTo(206, 356);
ctx.lineTo(306, 356);
ctx.lineTo(306, 456);
ctx.lineTo(206, 456);
ctx.closePath();
ctx.fillStyle = '#00FF00'; // Uncle Bob's green shirt
ctx.fill();

// Uncle Bob's arms
ctx.beginPath();
ctx.moveTo(156, 356);
ctx.lineTo(206, 406);
ctx.lineTo(206, 456);
ctx.lineTo(156, 456);
ctx.closePath();
ctx.fillStyle = '#00FF00'; // Uncle Bob's green shirt
ctx.fill();

ctx.beginPath();
ctx.moveTo(356, 356);
ctx.lineTo(306, 406);
ctx.lineTo(306, 456);
ctx.lineTo(356, 456);
ctx.closePath();
ctx.fillStyle = '#00FF00'; // Uncle Bob's green shirt
ctx.fill();

// Uncle Bob's legs
ctx.beginPath();
ctx.moveTo(206, 456);
ctx.lineTo(206, 506);
ctx.lineTo(156, 506);
ctx.closePath();
ctx.fillStyle = '#0000FF'; // Uncle Bob's blue pants
ctx.fill();

ctx.beginPath();
ctx.moveTo(306, 456);
ctx.lineTo(306, 506);
ctx.lineTo(356, 506);
ctx.closePath();
ctx.fillStyle = '#0000FF'; // Uncle Bob's blue pants
ctx.fill();

// Uncle Bob's address book
ctx.beginPath();
ctx.moveTo(356, 256);
ctx.lineTo(406, 256);
ctx.lineTo(406, 306);
ctx.lineTo(356, 306);
ctx.closePath();
ctx.fillStyle = '#FFFFFF'; // Uncle Bob's white address book
ctx.fill();

// Uncle Bob's pen
ctx.beginPath();
ctx.moveTo(406, 256);
ctx.lineTo(456, 256);
ctx.lineTo(456, 286);
ctx.lineTo(446, 296);
ctx.lineTo(406, 306);
ctx.closePath();
ctx.fillStyle = '#000000'; // Uncle Bob's black pen
ctx.fill();

// Uncle Bob's actions

// View Account
ctx.font = '20px Arial';
ctx.fillStyle = '#000000'; // Black text
ctx.fillText('View Account', 20, 50);

// View Address
ctx.font = '20px Arial';
ctx.fillStyle = '#000000'; // Black text
ctx.fillText('View Address', 20, 100);

// Manage Address
ctx.font = '20px Arial';
ctx.fillStyle = '#000000'; // Black text
ctx.fillText('Manage Address', 20, 150);

// Uncle Bob is ready to manage addresses with a smile!

// Uncle Bob: "Let's add some addresses, Bob!"
// User Bob: "Sure, Uncle Bob! Let's do it!"

// This drawing is a fun representation of Uncle Bob and User Bob managing addresses together!

// Uncle Bob: "I hope we don't get lost in all these addresses!"
// User Bob: "Don't worry, Uncle Bob! We'll keep everything organized!"

// Uncle Bob and User Bob make a great team!

// Uncle Bob: "Now let's go and explore the world of addresses!"
// User Bob: "Sounds like a plan, Uncle Bob! Let's get started!"

// Together, Uncle Bob and User Bob embark on an address adventure!

// Uncle Bob: "Remember, Bob, addresses are important but so is having fun!"
// User Bob: "Absolutely, Uncle Bob! Let's make this address management journey a memorable one!"

// Uncle Bob and User Bob are ready to have a blast while managing addresses!

// Uncle Bob: "Let's address everything in style!"
// User Bob: "Definitely, Uncle Bob! We'll address it all with a touch of awesomeness!"

// Uncle Bob and User Bob are the masters of address management!

// Uncle Bob: "Bob, with our address superpowers, we can conquer the world!"
// User Bob: "You're right, Uncle Bob! Together, we're unstoppable!"

// Uncle Bob and User Bob, the dynamic duo of address management!

// Uncle Bob: "Bob, it's time to address the address!"
// User Bob: "Absolutely, Uncle Bob! Let's address it with precision and care!"

// Uncle Bob and User Bob, on a mission to address the address!

// Uncle Bob: "Bob, let's make this address management journey a legendary one!"
// User Bob: "Definitely, Uncle Bob! We'll create address management history!"

// Uncle Bob and User Bob, creating address management magic!

// Uncle Bob: "Bob, with our address management skills, we can achieve anything!"
// User Bob: "You're right, Uncle Bob! Together, we'll conquer the address management world!"

// Uncle Bob and User Bob, the ultimate address management dream team!

// Uncle Bob: "Let's address the address like there's no tomorrow!"
// User Bob: "Absolutely, Uncle Bob! We'll address it with enthusiasm and determination!"

// Uncle Bob and User Bob, on a mission to address the address with all their might!

// Uncle Bob: "Bob, let's address it with style, grace, and a touch of humor!"
// User Bob: "Definitely, Uncle Bob! Let's infuse address management with our unique fun!"

// Uncle Bob and User Bob, adding a fun twist to address management!

// Uncle Bob: "Bob, let's address it like we've never addressed before!"
// User Bob: "Absolutely, Uncle Bob! We'll bring a fresh approach to address management!"

// Uncle Bob and User Bob, breaking the address management norms with their creativity!

// Uncle Bob: "Bob, let's address the address with a sprinkle of joy and a dash of laughter!"
// User Bob: "You got it, Uncle Bob! Let's make address management a delightful experience!"

// Uncle Bob and User Bob, spreading happiness through address management!

// Uncle Bob: "Bob, let's address it with a touch of quirkiness and a pinch of silliness!"
// User Bob: "Absolutely, Uncle Bob! We'll make address management a fun-filled adventure!"

// Uncle Bob and User Bob, turning address management into a playful journey!

// Uncle Bob: "Bob, let's address it like there's no address tomorrow!"
// User Bob: "Definitely, Uncle Bob! We'll address it with all our energy and passion!"

// Uncle Bob and User Bob, on a mission to address the address with their full dedication!

// Uncle Bob: "Bob, let's address the address with a splash of creativity and a sprinkle of imagination!"
// User Bob: "You're right, Uncle Bob! Let's make address management an art form!"

// Uncle Bob and User Bob, transforming address management into a masterpiece!

// Uncle Bob: "Bob, let's address it with a twist of innovation and a hint of curiosity!"
// User Bob: "Absolutely, Uncle Bob! We'll explore new ways to manage addresses!"

// Uncle Bob and User Bob, pushing the boundaries of address management!

// Uncle Bob: "Bob, let's address the address with a burst of positivity and a wave of optimism!"
// User Bob: "Definitely, Uncle Bob! We'll bring sunshine to the world of address management!"

// Uncle Bob and User Bob, spreading positivity through address management!

// Uncle Bob: "Bob, let's address it with a sprinkle of magic and a dash of wonder!"
// User Bob: "You got it, Uncle Bob! We'll make address management a magical experience!"

// Uncle Bob and User Bob, turning address management into a fairytale adventure!

// Uncle Bob: "Bob, let's address the address with a touch of elegance and a hint of sophistication!"
// User Bob: "Absolutely, Uncle Bob! We'll bring class to the world of address management!"

// Uncle Bob and User Bob, adding a touch of refinement to address management!

// Uncle Bob: "Bob, let's address it with a burst of energy and a blast of enthusiasm!"
// User Bob: "Definitely, Uncle Bob! We'll tackle address management with all our might!"

// Uncle Bob and User Bob, a dynamic duo full of address management energy!

// Uncle Bob: "Bob, let's address the address with a sprinkle of humor and a splash of laughter!"
// User Bob: "You're right, Uncle Bob! We'll bring joy to the world of address management!"

// Uncle Bob and User Bob, spreading laughter through address management!

// Uncle Bob: "Bob, let's address it with a touch of charm and a pinch of wit!"
// User Bob: "Absolutely, Uncle Bob! We'll make address management a delightful affair!"

// Uncle Bob and User Bob, adding a touch of charisma to address management!

// Uncle Bob: "Bob, let's address the address with a burst of creativity and a wave of inspiration!"
// User Bob: "Definitely, Uncle Bob! We'll make address management an artful journey!"

// Uncle Bob and User Bob, turning address management into a masterpiece!

// Uncle Bob: "Bob, let's address it with a sprinkle of magic and a dash of wonder!"
// User Bob: "You got it, Uncle Bob! We'll make address management a magical experience!"

// Uncle Bob and User Bob, on a mission to create address management magic!

// Uncle Bob: "Bob, let's address the address with a touch of elegance and a hint of sophistication!"
// User Bob: "Absolutely, Uncle Bob! We'll bring class to the world of address management!"

// Uncle Bob and User Bob, adding a touch of refinement to address management!

// Uncle Bob: "Bob, let's address it with a burst of energy and a blast of enthusiasm!"
// User Bob: "Definitely, Uncle Bob! We'll tackle address management with all our might!"

// Uncle Bob and User Bob, a dynamic duo full of address management energy!

// Uncle Bob: "Bob, let's address the address with a sprinkle of humor and a splash of laughter!"
// User Bob: "You're right, Uncle Bob! We'll bring joy to the world of address management!"

// Uncle Bob and User Bob, spreading laughter through address management!

// Uncle Bob: "Bob, let's address it with a touch of charm and a pinch of wit!"
// User Bob: "Absolutely, Uncle Bob! We'll make address management a delightful affair!"

// Uncle Bob and User Bob, adding a touch of charisma to address management!

// Uncle Bob: "Bob, let's address the address with a burst of creativity and a wave of inspiration!"
// User Bob: "Definitely, Uncle Bob! We'll make address management an artful journey!"

// Uncle Bob and User Bob, turning address management into a masterpiece!

// Uncle Bob: "Bob, let's address it with a sprinkle of magic and a dash of wonder!"
// User Bob: "You got it, Uncle Bob! We'll make address management a magical experience!"

// Uncle Bob and User Bob, on a mission to create address management magic!

// Uncle Bob: "Bob, let's address the address with a touch of elegance and a hint of sophistication!"
// User Bob: "Absolutely, Uncle Bob! We'll bring class to the world of address management!"

// Uncle Bob and User Bob, adding a touch of refinement to address management!

// Uncle Bob: "Bob, let's address it with a burst of energy and a blast of enthusiasm!"
// User Bob: "Definitely, Uncle Bob! We'll tackle address management with all our might!"

// Uncle Bob and User Bob, a dynamic duo full of address management energy!

// Uncle Bob: "Bob, let's address the address with a sprinkle of humor and a splash of laughter!"
// User Bob: "You're right, Uncle Bob! We'll bring joy to the world of address management!"

// Uncle Bob and User Bob, spreading laughter through address management!

// Uncle Bob: "Bob, let's address it with a touch of charm and a pinch of wit!"
// User Bob: "Absolutely, Uncle Bob! We'll make address management a delightful affair!"

// Uncle Bob and User Bob, adding a touch of charisma to address management!

// Uncle Bob: "Bob, let's address the address with a burst of creativity and a wave of inspiration!"
// User Bob: "Definitely, Uncle Bob! We'll make address management an artful journey!"

// Uncle Bob and User Bob, turning address management into a masterpiece!

// Uncle Bob: "Bob, let's address it with a sprinkle of magic and a dash of wonder!"
// User Bob: "You got it, Uncle Bob! We'll make address management a magical experience!"

// Uncle Bob and User Bob, on a mission to create address management magic!

// Uncle Bob: "Bob, let's address the address with a touch of elegance and a hint of sophistication!"
// User Bob: "Absolutely, Uncle Bob! We'll bring class to the world of address management!"

// Uncle Bob and User Bob, adding a touch of refinement to address management!

// Uncle Bob: "Bob, let's address it with a burst of energy and a blast of enthusiasm!"
// User Bob: "Definitely, Uncle Bob! We

Info

Created On: October 10, 2023
Created By: @DrawGPT

AI

Model: gpt-3.5-turbo-16k-0613
Time: 99 seconds
Prompt Tokens: 445
Completion Tokens: 3000
Total Token Cost: 3445
DrawGPT logo DrawGPT logo

Compare & Benchmark AI Models

Try the new DrawGPT Compare

  • Instantly compare the latest AI models side-by-side.
  • Top models: GPT, Gemini, Claude, Grok, SDXL.
  • From OpenAI, Google, Anthropic, xAI, Scenario.gg.
  • Generate images or text with multiple models at once.
  • See results in real time, share, and benchmark.
Try DrawGPT Compare →
DrawGPT Compare demo
DrawGPT logo DrawGPT logo

Draw, Sketch, Paint, or Doodle Instantly

This is where you can draw anything—then AI turns it into real 3D images and more!

  • Draw, sketch, paint, or doodle anything right in your browser.
  • AI transforms your creations into 3D images, vector art, and more.
  • Create images from text prompts using top AI models: DALL-E 3, Gemini, Stable Diffusion, and more.
  • No subscription required – just use tokens for each image.
  • Download as PNG, SVG, or vector graphics.
  • Perfect for logos, icons, art, textures, patterns, and game assets.
  • Type anything, get an image instantly. Commercial use allowed!
Try DrawGPT Draw →
DrawGPT Draw demo

NEW COMMUNITY AI IMAGES


These are recent AI images made by the community! These may use any AI model including DALL-E 3, Flux, Stable Diffusion, GPT-4, o1, and more and may be anything from simple animated SVGs to PNGs.

FAQ

What is DrawGPT?

DrawGPT is a an AI art generator that uses GPT-4, o1, o3, DALL-E 3, Gemini 2.0, Imagegen 3.0, Flux, Stable Diffusion, and Custom GPTs, ChatGPT, and other large language models to generate new images from text prompts.

Why Is This Different?

This does not require access to premium AI model subscriptions, it is able to be used by anyone with an internet connection and tokens. This allows everyone to get access to the very best AI art generation technology.

Artificial intelligence may create strange or unusual images. It is being used to generated images for advertising, entertainment, gaming, marketing, and fun right now!

Because Draw GPT has access to do many models we assume the model providers have followed best practices when attributing or utilizing data and images in the training data.

Yes! You can use the images for commercial purposes! And so can Draw GPT.

What Can DrawGPT Draw?

DrawGPT can draw anything you can think of and more! Just type your text prompt in to the textbox exactly like ChatGPT and see what the AI gives you! Seriously, you can get GPT to draw just about anything for you that you can type in the box.

DrawGPT creates images in PNG, SVG, and Javascript format for download and use. This is different than other AI art projects that only create images in PNG format; being able to get a scene graph via Javascript draw commands is a unique feature of this project and getting any AI art in SVG vector format is unique to DrawGPT.

Many people use this to generate quick art for simple projects, video game assets, new business logos, and more. It is also used to generate images for advertising, entertainment, gaming, marketing, creating art for ads and blog posts with AI and fun.

Want to learn more about DrawGPT, the types of possible image renders, and how to use DrawGPT in your next project as a developer?
Check out our AI image generation API!

Why Are They Weird?

DrawGPT is runs on an AI that has never actually "seen" an image as embodied AI in its life!

This method of drawing images using raw code is not a great way to draw complex images with lots of structure. It may be able to make photograph quality artwork and professional illustrations with AI but it can fail when using certain types of typography.

Is This ChatGPT?

Yes and no. Same same but different.

ChatGPT runs on the same model that this project uses, so this is like using ChatGPT to generate images, but it is a different instance of the model. This means that the AI is not precisly the same but it is the same quality AI, image generation AI, large language model, and overall AI art that ChatGPT is using and that Chat GPT can draw.

What is the difference? ChatGPT is specifically wired up to be conversational and track a conversation thread across multiple user prompts. Images in ChatGPT using DALL-E 3 are not saved to the Intenet and made available publicly.

In comparison DrawGPT does not remember things from prompt to prompt, each image is a unique image that does not reference any of the images or prompts previously supplied.

Copyright

You can do what you want it's your party.

We humbly ask that you backlink to DrawGPT if you do use our images in any promotion or commercial ways, but it is not required.

At the moment all images & Javascript code generated by this tool under the CC0 License with outrageous added term that the license can be revoked or retroactively changed at any time without warning for any image.

Yes! You can use the images for commercial purposes! And so can DrawGPT.

Images & Prompts Private

Images & prompts may be made made public.

Depending on the situation the prompts themselves are stored internally for research purposes.

Employees at OpenAI and DrawGPT have access to any prompts you submit.

DO NOT SUBMIT PERSONAL INFORMATION.