From 672f8ff2a081a71d19d5012bb13e4587a4f04954 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 3 Jul 2023 09:37:37 -0400 Subject: [PATCH] Generative AI prompt. --- 104.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 104.md diff --git a/104.md b/104.md new file mode 100644 index 0000000..e9c2f35 --- /dev/null +++ b/104.md @@ -0,0 +1,30 @@ +NIP-104 +======= + +Generative AI Prompt +-------------------- + +`draft` `optional` `author:vitorpamplona` + +This NIP reserves `kind:1947` for Generated AI media prompts to be produced at the client side. It's expected that each viewer of this event will see a different media. + +The prompt MUST be placed in the `.content` + +```js +{ + "id": "<32-bytes lowercase hex-encoded SHA-256 of the the serialized event data>", + "pubkey": "<32-bytes lowercase hex-encoded public key of the event creator>", + "created_at": "", + "kind": 1947, + "tags": [], // any relevant tags. + "content": "" +} +``` + +Clients MAY choose when to generate the image and MAY add information to the prompt at will. + +# Examples + +A client can add a given style to the prompt to match their user interface. Others can add the user's language to produce the image with the appropriate translations. Clients can design galleries for the best prompt collections. + +Supporting event kinds can accept a quoted `kind:1947` to be generated inside the rendering of that event. \ No newline at end of file